drop a column from a dataframe by name R code example Example: r data frame remove column df$columnName <- NULL