RSS

R script – Error in UseMethod(“meta”, x) : TermDocumentMatrix.VCorpus

04 Feb

Ever got this error when running R script with tm package??

Error in UseMethod(“meta”, x) :
  no applicable method for ‘meta’ applied to an object of class “try-error”
Calls: source … TermDocumentMatrix.VCorpus -> meta -> meta.VCorpus -> lapply -> FUN
Just try this line before using the TermDocumentMatrix,
textvectors <- Corpus(VectorSource(textvectors))
And then proceed with the TermDocumentMatrix which uses the textvectors
 
1 Comment

Posted by on February 4, 2015 in R

 

Tags: , , ,

One response to “R script – Error in UseMethod(“meta”, x) : TermDocumentMatrix.VCorpus

  1. Lili Sun

    March 13, 2015 at 3:29 am

    got the same error, do you have a solution now?

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: