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. ______________________________________________ R-help@r-project.org mailing list 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.