findFreqTerms

0th

Percentile

Find Frequent Terms

Find frequent terms in a document-term or term-document matrix.

Usage
findFreqTerms(x, lowfreq = 0, highfreq = Inf)
Arguments
x

A DocumentTermMatrix or TermDocumentMatrix.

lowfreq

A numeric for the lower frequency bound.

highfreq

A numeric for the upper frequency bound.

Details

This method works for all numeric weightings but is probably most meaningful for the standard term frequency (tf) weighting of x.

Value

A character vector of terms in x which occur more or equal often than lowfreq times and less or equal often than highfreq times.

Aliases
  • findFreqTerms
Examples
# NOT RUN {
data("crude")
tdm <- TermDocumentMatrix(crude)
findFreqTerms(tdm, 2, 3)
# }
Documentation reproduced from package tm, version 0.7-8, License: GPL-3

Community examples

Looks like there are no examples yet.