[R] Re order matrix columns

mentor_ mentor_ at gmx.net
Mon Nov 10 22:44:41 CET 2008


I have found the following thread to reorder a data.frame.
I would like to do same regarding a matrix:


I achieved this with a for loop and cbind but I think using 'is.element' is
much more
appropriate. Can anyone help?

View this message in context: http://www.nabble.com/Reorder-matrix-columns-tp20428678p20428678.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list