Remove column of data frame by name

Average: 5 (1 vote)

x is your data frame. x$total is the column you want to remove:

x$total <- NULL

More at the R Wiki