Displaying 2 results from an estimated 2 matches for "tdm1".
Did you mean:
tdm
2011 Sep 12
1
findFreqTerms vs minDocFreq in Package 'tm'
...nt results with both. I have given the results
from both the commands below:
findFreqTerms identifies 3140 words that appear more than 5 times but
minDocFreq identifies only 659 terms. Can someone please explain the reason
for the different or whether I have misunderstood their definitions??
>tdm1 <- TermDocumentMatrix(tr1,control=list(weighting=weightBin))
> freq_terms <- findFreqTerms(tdm1, lowfreq =5, highfreq = Inf)
> str(freq_terms)
chr [1:3140] "abc" "abil" "abl" "abnorm" "abort" "absenc" ...
> tdm2 <- Te...
2014 Jul 29
2
wordcloud y tabla de palabras [Avanzando]
...por cada uno de
>>>> los textos considerados.
>>>> Tengo los dos "corpus clean" por cada uno de los informes que estoy
>>>> considerando: año 2005 y 2013.
>>>>
>>>> >tdm05<-TermDocumentMatrix(cor.05.cl)
>>>> >tdm13<-TermDocumentMatrix(cor.13.cl)
>>>> > m05<-as.matrix(tdm05)
>>>> > m13<-as.matrix(tdm13)
>>>> >v05 <- sort(rowSums(m05),decreasing=TRUE)
>>>> > v13 <- sort(rowSums(m13),decreasing=TRUE)
>>>> > df05<-data....