
Last chance! 50% off unlimited learning
Sale ends in
Create a vector source.
VectorSource(x)
An object inheriting from VectorSource
, SimpleSource
,
and Source
.
A vector giving the texts.
A vector source interprets each element of the vector x
as a
document.
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