Got the answer:

> t(apply(test,1,sort))

I had played with the apply fn at one point, but noticed the results were
not quite right. Wrapping it in t was the trick! Thanks!

Now to use the nicely sorted rows in my "real" problem at hand...

Cheers,
Kev-

-- 
View this message in context: 
http://www.nabble.com/Sorting-rows-of-a-matrix-independent-of-each-other-tp22498636p22501189.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.

Reply via email to