findFreqTerms | R Documentation |
Find frequent terms in a document-term or term-document matrix.
findFreqTerms(x, lowfreq = 0, highfreq = Inf)
x |
A |
lowfreq |
A numeric for the lower frequency bound. |
highfreq |
A numeric 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 x
.
A character vector of terms in x
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.