findAssocs

0th

Percentile

Find Associations in a Term-Document Matrix

Find associations in a document-term or term-document matrix.

Usage
"findAssocs"(x, terms, corlimit) "findAssocs"(x, terms, corlimit)
Arguments
x
A DocumentTermMatrix or a TermDocumentMatrix.
terms
a character vector holding terms.
corlimit
a numeric vector (of the same length as terms; recycled otherwise) for the (inclusive) lower correlation limits of each term in the range from zero to one.
Value

terms and contains a named numeric vector. Each vector holds matching terms from x and their rounded correlations satisfying the inclusive lower correlation limit of corlimit.

Aliases
  • findAssocs
  • findAssocs.DocumentTermMatrix
  • findAssocs.TermDocumentMatrix
Examples
data("crude")
tdm <- TermDocumentMatrix(crude)
findAssocs(tdm, c("oil", "opec", "xyz"), c(0.7, 0.75, 0.1))
Documentation reproduced from package tm, version 0.6-2, License: GPL-3

Community examples

Looks like there are no examples yet.