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