Learn R Programming

tm (version 0.3-1)

findAssocs: Find Associations in a Term-Document Matrix

Description

Find associations in a term-document matrix.

Usage

## S3 method for class 'TermDocumentMatrix':
findAssocs(x, term, corlimit)
## S3 method for class 'matrix':
findAssocs(x, term, corlimit)

Arguments

x
A term-document matrix.
term
A character holding a term.
corlimit
A numeric for the lower correlation bound limit.

Value

  • A named numeric with those terms from x which correlate with term more than corlimit.

Examples

Run this code
data("crude")
tdm <- TermDocumentMatrix(crude)
findAssocs(tdm, "oil", 0.7)

Run the code above in your browser using DataLab