a b c d e 1 2 3 4 5
df[,-which(names(df)%in%c("a","b")] subset(df,select=-c(a,b))
df[ , c("x","y")] subset(df, select=c(x,y))