[R] Sorting rows of a matrix independent of each other

Paul Smith phhs80 at gmail.com
Fri Mar 13 18:37:33 CET 2009

On Fri, Mar 13, 2009 at 5:26 PM, Wacek Kusnierczyk
<Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:
>> Oh, this seemed so simple (and I'm sure the answer will be, as usual, so
>> thanks in advance for enlightening me). I need to sort each row of a matrix
>> independent of the others. For example,
>    apply(matrix, 1, sort)



More information about the R-help mailing list