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