Skip to content
Prev 181028 / 398502 Next

Re order variables in a dataframe

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