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

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Fri Mar 13 18:26:39 CET 2009


Kevski 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)

vQ




More information about the R-help mailing list