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