- 博客(1)
- 收藏
- 关注
原创 【R】根据列的值选择列
【目标】去除数据框中全是空白“”的列df <- data.frame(A=c("Apple","Banana","Orange","Peach"),B=c("","","",""),C=c("car","bus",NA,"truck"))> df A B C1 Apple car2 Banana bus3 Orange <NA>4 Peach truck【代码】df %>% select(where(~!id
2022-05-23 01:51:41
213
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人