[R] Sorting rows of a matrix independent of each other
Kevski
ps at kevski.com
Fri Mar 13 18:21:55 CET 2009
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.
More information about the R-help
mailing list