| VectorSource {tm} | R Documentation |
Constructs a source for a vector as input.
VectorSource(x, encoding = "unknown")
x |
A vector. |
encoding |
encoding to be assumed for input strings. It is used to mark character strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the input. |
An object of class VectorSource which extends the class
Source representing a vector where each entry is interpreted as
a document.
Ingo Feinerer
getSources to list available sources. Encoding on encodings in R.
docs <- c("This is a text.", "This another one.")
(vs <- VectorSource(docs))
inspect(Corpus(vs))