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