findFreqTerms {tm} | R Documentation |
Find frequent terms in a term-document matrix.
findFreqTerms(object, lowfreq = 0, highfreq = Inf)
object |
A term-document matrix. |
lowfreq |
An integer for the lower frequency bound. |
highfreq |
An integer for the upper frequency bound. |
This method works for all numeric weightings but is probably
most meaningful for the standard term frequency (tf
) weighting
of object
.
A character vector of terms in object
which occur more or equal often
than lowfreq
times and less or equal often than highfreq
times.
data("crude") tdm <- TermDocumentMatrix(crude) findFreqTerms(tdm, 2, 3)