Displaying 1 result from an estimated 1 matches for "stableord".
Did you mean:
stableorder
2003 Jul 18
3
lexicographic sort of ordered lists
Does anyone know how to execute the following sort problem in R? Matrix X
has positive integer entries, and each column has been sorted in ascending
order. The problem is now to order the columns lexicographically. For
instance if the matrix X is
1 2 1 1 2
2 2 3 3 2
3 5 5 4 2
then the result should be
1 1 1 2 2
2 3 3 2 2
3 4 5 2 5
Let ONE be a vector of 1's of length