VectorSource {tm} | R Documentation |
Constructs a source for a vector.
## S4 method for signature 'vector': VectorSource(object, encoding = "UTF-8")
object |
A vector holding the texts. |
encoding |
A character giving the encoding of the file. |
An S4 object of class VectorSource
which extends the class
Source
representing a vector interpreting each element as a
document.
Ingo Feinerer
docs <- c("This is a text.", "This another one.") (vs <- VectorSource(docs)) inspect(Corpus(vs))