Ignacio mas data
2010-Apr-23 16:21 UTC
[R] Library (tm) Error: could not find function "TermDocMatrix".
Hi List I have the next code and the error. I have try with other codes and I have the same problem.> reut21578 <- system.file("texts", "crude", package = "tm") > (r <- Corpus(DirSource(reut21578), readerControl = list(reader > readReut21578XMLasPlain)))A corpus with 20 text documents> (r <- Corpus(DirSource(reut21578), readerControl = list(reader > readReut21578XMLasPlain)))> > > summary(r)A corpus with 20 text documents The metadata consists of 2 tag-value pairs and a data frame Available tags are: create_date creator Available variables in the data frame are: MetaID> rec.matrix <- TermDocMatrix(r)Error: no se pudo encontrar la funci?n "TermDocMatrix" Error: could not find function "TermDocMatrix". Thanks -- View this message in context: http://r.789695.n4.nabble.com/Library-tm-Error-could-not-find-function-TermDocMatrix-tp2062464p2062464.html Sent from the R help mailing list archive at Nabble.com.
Peter Ehlers
2010-Apr-23 20:26 UTC
[R] Library (tm) Error: could not find function "TermDocMatrix".
Package tm does not have a function TermDocMatrix. Where did you get the idea that it does? There _is_ a function TermDocumentMatrix, however. -Peter Ehlers On 2010-04-23 10:21, Ignacio mas data wrote:> > Hi List > > I have the next code and the error. I have try with other codes and I have > the same problem. > >> reut21578<- system.file("texts", "crude", package = "tm") >> (r<- Corpus(DirSource(reut21578), readerControl = list(reader >> readReut21578XMLasPlain))) > A corpus with 20 text documents > > >> (r<- Corpus(DirSource(reut21578), readerControl = list(reader >> readReut21578XMLasPlain)))> > >> summary(r) > A corpus with 20 text documents > > The metadata consists of 2 tag-value pairs and a data frame > Available tags are: > create_date creator > Available variables in the data frame are: > MetaID >> rec.matrix<- TermDocMatrix(r) > Error: no se pudo encontrar la funci??n "TermDocMatrix" > > Error: could not find function "TermDocMatrix". > > > Thanks > > >-- Peter Ehlers University of Calgary
Ignacio mas data
2010-Apr-26 08:10 UTC
[R] Library (tm) Error: could not find function "TermDocMatrix".
Hi Peter Thanks. This was my problem I saw this term in the next document http://cran.r-project.org/doc/Rnews/Rnews_2008-2.pdf Best regards -- View this message in context: http://r.789695.n4.nabble.com/Library-tm-Error-could-not-find-function-TermDocMatrix-tp2062464p2064843.html Sent from the R help mailing list archive at Nabble.com.