try this:
dtm <- DocumentTermMatrix(examplecorpus, control = list(wordLengths=c(1,100)))
On Wed, May 16, 2012 at 6:22 AM, C.H. wrote:
> Dear All,
>
> The following code illustrate the problem.
>
> [R code]
> require(tm)
> exampledoc <- c("R is good", "R is really good")
> examplecorpus <- Corp
Dear All,
The following code illustrate the problem.
[R code]
require(tm)
exampledoc <- c("R is good", "R is really good")
examplecorpus <- Corpus(VectorSource(exampledoc), encoding = "UTF-8")
dtm <- DocumentTermMatrix(examplecorpus, control = list(minWordLength = 1))
as.matrix(dtm)
[/R code]
Th
2 matches
Mail list logo