I am pretty sure it exists somehow but I cannot find the answer on SO: I want to select a subset of a data.frame by using df[-"name"] of something similar since it is possible to use df["name"] e.g. :
df <- data.frame(x = 1:5, y = 2:6, z = 3:7)
df_plane <- df[-"z"] # what I want to type
df_plane <- df[,-3] # what I want to be done
thanks