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]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.