[R] Re order matrix columns

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


Hi,

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

https://stat.ethz.ch/pipermail/r-help/2008-February/154138.html

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

Cheers
-- 
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