Skip to content
Prev 169575 / 398506 Next

How to sort a matrix or dataframe by two columns?

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