[R] Sorting a matrix

Angelo Scozzarella angeloscozzarella at tiscali.it
Thu Jul 10 20:21:05 CEST 2008


Hi,

I want to sort a matrix by a specific variable without changing the  
row binding between variables.

Ex.

Name	Sex		Age
Fred	M		24
John	M		18
Mary	F		21


ordered by Age


Name	Sex		Age
John	M		18
Mary	F		21
Fred	M		24



Thanks



Angelo



More information about the R-help mailing list