[R] Renaming columns in data.frame, inserting/removing columns from data.frame

Ken Termiso jerk_alert at hotmail.com
Tue Feb 8 19:47:19 CET 2005


Hello,

I'm hoping that there is an easier way to rename columns in a data frame 
other than by using the names() assignment, which requires you to type in 
all the column names at once for a data.frame, in the case that I simply 
want to rename a single column in a data frame.

Also, is there an easy way to move columns in a data frame around relative 
to the other columns?

Thanks in advance,
Ken




More information about the R-help mailing list