data.frame(id = c(1,2,3,4), text1 = c("sth","","another",""), text2 = c("more","another","add",""), text3 = c("final","and","where",""), stringsAsFactors = FALSE)
Как можно проверить столбцы text1, text2, text3, если во всех них есть ячейки, где ничего не написано, как их удалить?
Пример ожидаемого вывода
data.frame(id = c(1,2,3), text1 = c("sth","","another"), text2 = c("more","another","add"), text3 = c("final","and","where"), stringsAsFactors = FALSE)