how to drop a column in r code example Example: how to drop a column in r keeps <- c("y", "a") DF[keeps]