VectorSource | R Documentation |
Create a vector source.
VectorSource(x)
x |
A vector giving the texts. |
A vector source interprets each element of the vector x
as a
document.
An object inheriting from VectorSource
, SimpleSource
,
and Source
.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.