[R] How to sort a matrix or dataframe by two columns?

Bill Hyman billhyman1 at yahoo.com
Fri Feb 6 23:29:41 CET 2009


Dear all,

I have a matrix data and would like to sort it by col 1 first and then sort it by col 2. Can I do it in R? Thanks a lot!

Bill




More information about the R-help mailing list