[R] Removing columns from data frame
Jens Nieschulze
jniesch at gwdg.de
Mon Jul 22 20:19:22 CEST 2002
On Mon, 22 Jul 2002, Daniel Mastropietro wrote:
%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
something like
yourDataFrame$columnName<-NULL
JN
%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
%_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
%
***********************************************************************
Jens Nieschulze
Institute for Forest Biometrics & Phone: ++49-551-39-12107
Applied Computer Science Fax : ++49-551-39-3465
Buesgenweg 4
37077 Goettingen E-mail: jniesch at uni-forst.gwdg.de
GERMANY http://www.uni-forst.gwdg.de/~jniesch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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