[R] sort by decreasing columns?

Nia Gupta nia_gupta at yahoo.com
Sun Dec 14 01:13:28 CET 2014


Hello, 

I have a data frame that looks like this:
           a      b    c
1        2       3    8
2        3       5    9
I was wondering if it was possible to reorder the columns by decreasing values so the new data frame would look like this:
           c      b    a
1        8      3    2
2        9      5   3

Thank you


	[[alternative HTML version deleted]]



More information about the R-help mailing list