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