您可以 Select Filter
个具有all
个值""的列.在这里,我使用了一个示例数据帧,其中列title_2只有""值:
Filter(function(x)!all(x == ""), df)
输出:
id title_1
1 1 2
2 2 3
3 3 5
df <- data.frame(id = c(1,2,3),
title_1 = c(2,3,5),
title_2 = c("", "", ""))