【发布时间】:2015-09-19 17:06:16
【问题描述】:
我想知道是否存在将文本和字符串列表作为输入的现有 R 函数,是否会过滤掉在文本中找到的列表中的匹配字符串?
例如,
x <- "This is a new way of doing things."
mywords <- c("This is", "new", "not", "maybe", "things.")
filtered_words <- Rfunc(x, mywords)
然后filtered_words 将包含“This is”、“new”和“things”。
有这样的功能吗?
【问题讨论】:
标签: r text-mining