[R] Removing columns from data frame
mschwartz at medanalytics.com
Mon Jul 22 21:16:32 CEST 2002
> 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 "-"
> remove the columns when referenced by column number, and I don't want
> use the %in% operator together with the names() function.
> Daniel Mastropietro
Look at ?subset using the "select = " argument.
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