[R] help: how to change the column name of data.frame

From: wu sz <r.shengzhe_at_gmail.com>
Date: Tue 19 Jul 2005 - 15:49:05 EST


Hello,

I have a data frame with 15 variables, and want to exchange the data of 4th column and 6th column. First I append a column in the data frame, copy the 4th column data there, then copy the 6th column data to 4th column, and copy the appended column data to 6th column, but the names of the 4th and 6th column are still unchanged. How can I exchange them?

Thank you,
Shengzhe



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 19 15:54:15 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST