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