Skip to content
Prev 247133 / 398506 Next

Odp: Outputting csv file from dataframe with columns in a particular order

Hi

r-help-bounces at r-project.org napsal dne 12.01.2011 16:16:16:
If you have datafreme with column order a, b, c, d and you want b, c, d, a 
just order columns accordingly

write.table(df[,c("b", "c", "d", "s")], ....)

Regards
Petr
http://www.R-project.org/posting-guide.html