file=("LUSDR/letter.doc") Howdy Y'all,
So i am looking to read a word document in the following formats(.doc) or any type of accessible word processor software (e.g. text .txt, notepad, etc). Had the ability to search certain words, for instance "banana", "peacock","Weapons" "Mass" "Destruction". Then i could summarize and view the results. i looked and the only thing i could find was the below where i want to analyze "letter.doc" and look for the words mentioned in quotes above. Its aparently wrong but im wondering if this is even possible. Please advise. Thanks In Solidarity JR cat"banana", "peacock","Weapons" "Mass" "Destruction" file=("letter.doc"),sep="\n") readLines(file, n=-1) unlink("letter.doc") # tidy up ## difference in blocking cat("123\nabc", file = "test1") readLines("test1") # line with a warning a=con <- file("test1", "r", blocking = FALSE) readLines(con) # empty cat(" def\n", file = "test1", append = TRUE) readLines(con) # gets both close(con) unlink("test1") # tidy up -- View this message in context: http://www.nabble.com/reading-and-analyzing-a-word-document-tp25691972p25691972.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.