how to delete columns in a dataframe 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]