findAssocs {tm}R Documentation

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

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

[Package tm version 0.3-4.1 Index]