Problem with findAssocs from tm package

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.

+5
source share
3 answers

, 0.90 , "". , , 0,05 , .

+2

numeric(0), , Corpus , document term matrix . TermDocumentMatrix() , multi-column matrix. , ?

+2

, . , , - , . , - . .

0

All Articles