So I have some data and in a column there are some values like this:
df <- matrix(c(1,0,3,1,0,0,99,2))
Now I want to delete the whole case if the value is bigger than 0 and 1 or not 0 and 1.
So I have:
1 0 3 1 0 0 99 2
And I want to delete the rows bigger than 0 and 1 This would then look like:
1 0 1 0 0
How would I do that?