remove a dataframe column in r code example Example: r data frame remove column df$columnName <- NULL