【发布时间】:2016-02-18 05:54:18
【问题描述】:
我有如下所示的数据集
Id Comments
1 How. will the binary giant change.
Will the unknown disregard maximize another blamed bottle?
2 The thinking accent hurts.... How.. the lord coast?
3 The panda moans about the intuitive room past a device.
4 In an ideology punts the center..
How. An exercise elaborates past a photographic bookshop
我想保留包含关键字How且不区分大小写的句子
最终的数据集应该是这样的
Id Comments
1 How will the binary giant change.
2 How the lord coast?
3 NA
4 How An exercise elaborates past a photographic bookshop
非常感谢任何帮助。
【问题讨论】:
-
这些句子在'Id'中是否用
\n分隔` -
@akrun,一些来自
.,一些来自\n
标签: r string grepl keyword-search