Sorting rows of a matrix independent of each other
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)
t(apply(test,1,sort)) Paul