[R] change column name in a function

Ulrich Leopold uleopold at science.uva.nl
Wed Jun 26 15:32:40 CEST 2002


I have the following function:

TEST <- cbind(Pox0t30.stone.1990.2000, 
sqrt(apply(Pox0t30.stone.1990.2000[,2:11], 1, var)))

In rhe resulting Object TEST the added column is titled:
sqrt(apply(Pox0t30.stone.1990.2000[,2:11], 1, var)

I would like to change it to a sensible variable name like PoxMean. How 
can I incorporate this into the above function?


Ulrich Leopold MSc.

Department of Physical Geography
Institute for Biodiversity and Ecosystem Dynamics
Faculty of Science
University of Amsterdam
Nieuwe Achtergracht 166
NL-1018WV Amsterdam

Phone: +31-(0)20-525-7456 (7451 Secretary)
Fax:   +31-(0)20-525-7431
Email: uleopold at science.uva.nl

Check us also out at:
Netherlands Centre for Geo-ecological Research

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