I am trying to find words associated with a specific word in the document term matrix using the tm package.
I use findAssocsfor this. The arguments for findAssocsare:
- x: matrix of document terms.
- term: a character containing the term.
- corlimit: numeric value for the lower limit of the constraint constraint.
I constantly get numeric(0)as a result
Example:
findAssocs(test.dtm, "investment", 0.90)
>numeric(0)
Does anyone know findAssocsand know what I'm doing wrong? Or does anyone know more broadly what the result may mean numeric(0)?
Thanks in advance for any help.
Brando
source
share