[R] package tm, error with VectorSource

From: Kieren Diment <diment_at_gmail.com>
Date: Mon, 16 Jun 2008 14:23:27 +1000


Hi,

the documentation for tm advertises the following:

> docs <- c("This is a text.", "This another one.")
> Corpus(VectorSource(docs))

but this doesn't work for me:

> docs <- c("This is a text.", "This another one.")
> Corpus(VectorSource(docs))

Corpus(VectorSource(docs))
Error: could not find function "VectorSource" Error in Corpus(VectorSource(docs)) :

   error in evaluating the argument 'object' in selecting a method for function 'Corpus'

Is this a bug?

Thanks in advance



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 16 Jun 2008 - 04:33:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Jun 2008 - 05:30:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive