Find associations in a document-term or term-document matrix.
## S3 method for class 'DocumentTermMatrix' findAssocs(x, terms, corlimit) ## S3 method for class 'TermDocumentMatrix' findAssocs(x, terms, corlimit)
a character vector holding terms.
a numeric vector (of the same length as
A named list. Each list component is named after a term in
and contains a named numeric vector. Each vector holds matching terms from
x and their rounded correlations satisfying the inclusive lower
correlation limit of
data("crude") tdm <- TermDocumentMatrix(crude) findAssocs(tdm, c("oil", "opec", "xyz"), c(0.7, 0.75, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.