[R] sort a matrix on just one column

Paul Green pgreen at umich.edu
Wed Sep 10 16:50:10 CEST 2003


How can I sort(decreasing) a matrix on just the first column?
For example, I can I get

   8  2
   7  5
   4  1

from

   7  5
   4  1
   8  2

Thanks




More information about the R-help mailing list