I have the following dataset:
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
Now I want to delete all rows where the numeric function == 0 (they are not here, but there are other data sets) When I use the following command, my complete data set is empty, what did I do wrong?
test[-c(which(test$is.numeric.feature==0)),]
source
share