[R] omitting columns from a data frame

Erin Hodgess erinm.hodgess at gmail.com
Tue Jun 21 05:45:15 CEST 2011


Dear R People:

I have a data frame, xm1, which has 12 rows and 4 columns.

If I put is xm1[,-4], I get all rows, and columns 1 - 3, which is as
it should be.

Now, is there a way to use the names of the columns to omit them, please?

Thanks so much in advance!

Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list