I have the following dataframe:
a b   c   d   e      
1 rr  dfv 5   0.1
9 t   rr1 222 0.44
7 sdf we  1   0.111
I want to select all columns except say d and e.
I know I can use subset for this: subset(df, -c(d, e))
Why can't I do df[,-c(d,e)]?
Please advise.
P.S @sotos and others:
x[,-c("b", "c")] Error in -c("b", "c") : invalid argument to unary operator
