[R] sorting elements of matrix by row

2006-10-27 Thread Vumani Dlamini
Dear R users, I would like to sort elements of a matrix by row and use this ordering to also sort another matrix. I am trying to post-order the means of components for a mixture model and would also like to do the same for the component probabilities. This is what I have tried thus far, but I

Re: [R] sorting elements of matrix by row

2006-10-27 Thread Petr Pikal
] To: r-help@stat.math.ethz.ch Date sent: Fri, 27 Oct 2006 10:10:27 + Subject:[R] sorting elements of matrix by row Dear R users, I would like to sort elements of a matrix by row and use this ordering to also sort another matrix. I am trying to post-order