Constructs a source for a vector as input.
构造一个向量作为输入源。
用法----------Usage----------
VectorSource(x, encoding = "UTF-8")
参数----------Arguments----------
参数:x
A vector.
一个向量。
参数:encoding
A character giving the encoding of x.
一个字符的编码x。
值----------Value----------
An object of class VectorSource which extends the class Source representing a vector where each entry is interpreted as a document.
对象的类VectorSource扩展类Source一个向量,其中每个条目将被解释为一个文件。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
getSources to list available sources.
getSources列出可用的来源。
实例----------Examples----------
docs <- c("This is a text.", "This another one.")
(vs <- VectorSource(docs))
inspect(Corpus(vs))