Write a R program to drop column(s) by name from a given data frame 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]