全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1262 2
2021-11-12
悬赏 20 个论坛币 已解决

variable 名为 ”test_result", 前三条结果如下:

[1] No recent territorial infarct, hydrocephalus, hyperdense intracranial  vessel, intracranial mass, midline shift or intracranial herniation.\r\r\n \r\r\n Small hypodensities in bilateral lentiform nuclei inferiorly are favored  to represent prominent perivascular spaces.\r\r\n Patchy low-attenuation in bilateral cerebral white matter, nonspecific but  likely represents mild chronic small vessel ischemic change. Generalized  age-related brain parenchymal volume loss

[2] Slight increase in the  ventricular volume but no transependymal hypodensity.  No new hemorrhage.   No mass effect. Midline is centered.\r\n \r\n \r\n"                                                               [3] There is increased mass effect upon the cortical  mantle but there is no midline shift.\r\n Right prefrontal subdural hematoma measures up to 3 mm in depth,  previously 4 mm in depth and has become increasingly low density.\r\n The ventricular system is unremarkable.\r\n No new hemorrhage or acute territorial ischemic insult is detected.\r\n Carotid siphon atheromatous calcification is detected.\r\n There is a left approach NG tube and paranasal sinus mucosal thickening.\r\n Unaltered calvarial fractures including bilateral petrous temporal bone  fractures resulting in fluid filling the mastoids.\r\n No abnormality of the globes/orbits is detected.\r\n \r\n \r\n"。。。。。。


(有几千个结果)                                                                     


想找出包含关键字“midline” 的句子,并产生一个新的变量(就是包含关键词的这句话),该怎么实现呢? 感谢大神们赐教   


最佳答案

s609078902 查看完整内容

这样就可以了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2021-11-12 14:58:22
这样就可以了
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-11-12 20:45:50
因为不是所有行都包含这个字符串,所以我这里报错了

Errors:
  replacement has 727 rows, data has 2177
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群