Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

findFreqTerms

Find Frequent Terms


Description

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.

Examples

data("crude")
tdm <- TermDocumentMatrix(crude)
findFreqTerms(tdm, 2, 3)

tm

Text Mining Package

v0.7-8
GPL-3
Authors
Ingo Feinerer [aut, cre] (<https://orcid.org/0000-0001-7656-8338>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), Artifex Software, Inc. [ctb, cph] (pdf_info.ps taken from GPL Ghostscript)
Initial release
2020-11-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.