[R] Removing columns from data frame
    Marc Schwartz 
    mschwartz at medanalytics.com
       
    Mon Jul 22 21:16:32 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
Daniel,
Look at ?subset using the "select = " argument.
HTH,
Marc
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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