I've seen similar questions here, but I couldn't find any help.
I have a df like this:
df <- data.frame(CSF1=c(-9,-9,-9,-9), CSF2=c(-9,-1,-9,-9),
D13S1=c(-9,-9,11,11), D13S2=c(-9,-9,11,12))
CSF1 CSF2 D13S1 D13S2
10398 -9 -9 -9 -9
10398 -9 -1 -9 -9
20177 -9 -9 11 11
20361 -9 -9 11 12
I want to delete all the rows with values -9 or -1 for all columns, like the first 2 rows.
Thanks!