Skip to content
Prev 171249 / 398503 Next

Sorting rows in a matrix based on vector of indecies

Hi David,

This was useful, thanks.

The example was just that, there are no "a"s, "b",s etc I was
just trying to show what I was trying to do.


Using m[v,]

where m was the matrix in my example and v the vector of
index values works great as you suggested Thanks.

R is quite a powerful language as I am starting to discover
(and folks on the list here are very helpful).

Regards,

Esmail
David Winsemius wrote: