powered by
Create a vector source.
VectorSource(x)
An object inheriting from VectorSource, SimpleSource, and Source.
VectorSource
SimpleSource
Source
A vector giving the texts.
A vector source interprets each element of the vector x as a document.
x
Source for basic information on the source infrastructure employed by package tm.
docs <- c("This is a text.", "This another one.") (vs <- VectorSource(docs)) inspect(VCorpus(vs))
Run the code above in your browser using DataLab