[R] Swap variables in data.frame

Birgit Lemcke birgit.lemcke at systbot.uzh.ch
Mon Jun 2 11:27:18 CEST 2008

Hello R-user community!

I am running R 2.7.0 on a Power Book (Tiger). (I am still R and  
statistics beginner)

I have a problem that is certainly solved very easily but presently I  
don`t know how.

I have a dataframe and two of my variables are in the wrong position  
and I would like to swap those variables.
It is easier to handle the dataset if the variables have a certain  

I will be grateful for a hint to solve this.



Birgit Lemcke
Institut für Systematische Botanik
Zollikerstrasse 107
CH-8008 Zürich
Ph: +41 (0)44 634 8351
birgit.lemcke at systbot.uzh.ch

175 Jahre UZH
«staunen.erleben.begreifen. Naturwissenschaft zum Anfassen.»
Weitere Informationen http://www.175jahre.uzh.ch/naturwissenschaft

More information about the R-help mailing list