The following code is derived from a paper titled "Text Mining Infrastructure
in R" (http://www.jstatsoft.org/v25/i05/paper).  The example below seems to
load some default documents for analysis, some sort of latin document.  I
cannot for the life of me figure out to load my own document let alone an
entire corpus.  I have searched the above documenet as well as related
documentation.  Any leads or help would be appreciated.  Thanks everyone

from document

txt <- system.file("texts", "txt", package = "tm")
 (ovid <- Corpus(DirSource(txt),
 readerControl = list(reader = readPlain,
language = "la",
 load = TRUE)))

my attempt
txt <- system.file("Speeches/speech", "txt", package = "tm")
 (ovid <- Corpus(DirSource(txt),
 readerControl = list(reader = readPlain,
language = "la",
 load = TRUE)))


-- 
View this message in context: 
http://www.nabble.com/text-mining-tp25717142p25717142.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.

Reply via email to