[R] Removing columns from data frame

Daniel Mastropietro mastropi at uwalumni.com
Mon Jul 22 19:13:15 CEST 2002


Hello,

Is there an easy way to remove a few columns from a data frame by 
indicating the column names? I am thinking of an operator like the "-" to 
remove the columns when referenced by column number, and I don't want to 
use the %in% operator together with the names() function.

Thanks
Daniel Mastropietro

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list