DataframeSource(tm)
DataframeSource()所属R语言包:tm
Data Frame Source
数据框的源
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Constructs a source from a data frame.
构造一个从数据框的源。
用法----------Usage----------
DataframeSource(x, encoding = "UTF-8")
参数----------Arguments----------
参数:x
A data frame holding the texts.
一个数据框控股的文本。
参数:encoding
A character giving the encoding of x.
一个字符的编码x。
值----------Value----------
An object of class DataframeSource which extends the class Source representing a data frame interpreting each row as a document.
对象的类DataframeSource扩展类Source解释每一行作为一个文件来表示一个数据框。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
getSources to list available sources.
getSources列出可用的来源。
实例----------Examples----------
docs <- data.frame(docs = c("This is a text.", "This another one."),
row.names = c("Text 1", "Text 2"))
(ds <- DataframeSource(docs))
inspect(Corpus(ds))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|