![](https://img.haomeiwen.com/i15107721/533a8e54d0188411.png)
目的:只删除数据框“human_f_score”中“σf”这一列里所有含NA的行
方法:使用tidyr包里的drop_na()
library(tidyr)
human_f_score <- human_f_score %>% drop_na(σf)
结果如下:
![](https://img.haomeiwen.com/i15107721/f3914bbe0f0118e5.png)
目的:只删除数据框“human_f_score”中“σf”这一列里所有含NA的行
方法:使用tidyr包里的drop_na()
library(tidyr)
human_f_score <- human_f_score %>% drop_na(σf)
结果如下:
本文标题:小技巧-只删除某一列中含NA的行(R)
本文链接:https://www.haomeiwen.com/subject/thloqqtx.html
网友评论