tm_intersect(tm)
tm_intersect()所属R语言包:tm
Intersection between Documents and Words
文件和词之间的求交
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Perform intersection on text documents and words.
执行文本文件和字的交叉点上。
用法----------Usage----------
## S3 method for class 'PlainTextDocument'
tm_intersect(x, y)
参数----------Arguments----------
参数:x
A text document.
一个文本文件。
参数:y
A character vector of words to be intersected with.
字符向量相交的话。
值----------Value----------
A logical value indicating whether a word in y appears in x.
一个逻辑值,该值指示是否一个字y出现在x。
参见----------See Also----------
getFilters to list available filter functions.
getFilters列出可用的过滤功能。
实例----------Examples----------
data("crude")
crude[[1]]
tm_intersect(crude[[1]], c("crude", "oil"))
tm_intersect(crude[[1]], "acquisition")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|