[R] Re order variables in a dataframe

pgseye prseye at gmail.com
Thu May 21 05:19:50 CEST 2009


This is no doubt a very basic question for most R users, but is there an easy
way to reorder the variables (columns) in a dataframe (I can't seem to find
an answer anywhere). I've generally been creating a new dataframe and
selecting the new order I want from the old but this is time-consuming.

Thanks,

Paul
-- 
View this message in context: http://www.nabble.com/Reorder-variables-in-a-dataframe-tp23647222p23647222.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list