how to drop columns in dataframe in r code example
Example 1: r data frame remove column
df$columnName <- NULL
Example 2: how to drop a column in r
keeps <- c("y", "a")
DF[keeps]
df$columnName <- NULL
keeps <- c("y", "a")
DF[keeps]