[R] Package TM & dataframes
dwinsemius at comcast.net
Fri Jan 10 16:28:28 CET 2014
On Jan 10, 2014, at 10:11 AM, ramoss wrote:
> I am trying to use the package TM on a dataframe & get the following
> complaints <- tm_map(complaints, tolower)
> Error in UseMethod("tm_map", x) :
> no applicable method for 'tm_map' applied to an object of class
> Tm doesn't work on dataframes? My data frame consists of 1 text
> containing customer complaints. What do I have to change it to in
> order to
> use the TM package for text mining?
> Thanks ahead for your help/thoughts.
As the Posting Guide says: Sometimes the appropriate answer is to
direct you to the "manual". In this case ?tm::tm_map shows that the
first argument is expected to be a corpus object.
David Winsemius, MD
Alameda, CA, USA
More information about the R-help