我有以下数据集:
text <- c(1:13)
numbers <- c(1,1,1,1,1,1,1,1,1,1,1,1,1)
test <- data.frame(
text =text,
is.numeric.feature = numbers)
text is.numeric.feature
1 1 1
2 2 1
...
13 13 1
现在我想删除数字特征== 0的所有行(这里没有,但在其他数据集中有)当我使用以下命令时,我的完整数据集是空的,我做错了什么?
test[-c(which(test$is.numeric.feature==0)),]