On Fri, Mar 13, 2009 at 5:26 PM, Wacek Kusnierczyk
<waclaw.marcin.kusnierc...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to