powered by
Create a vector source.
VectorSource(x)
A vector giving the texts.
An object inheriting from VectorSource, SimpleSource, and Source.
VectorSource
SimpleSource
Source
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.
# NOT RUN { docs <- c("This is a text.", "This another one.") (vs <- VectorSource(docs)) inspect(VCorpus(vs)) # }
Run the code above in your browser using DataLab