O'Reilly logo
  • Micah Norman thinks this is interesting:

delete a column from a data frame.

Solution

Assign NULL to that column:

data$badcol <- NULL

From

Cover of R Graphics Cookbook

Note

Delete a column from a data frame.