[R] Order all the columns ascending elements on a matrix or a data frame

Özgür Asar oasar at metu.edu.tr
Sun Jun 10 10:25:04 CEST 2012


Try

apply(b,2,sort)

best
ozgur

--
View this message in context: http://r.789695.n4.nabble.com/Order-all-the-columns-ascending-elements-on-a-matrix-or-a-data-frame-tp4632922p4632924.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list