Description Usage Arguments Value See Also Examples
roworder
returns a permutation which rearranges the rows of its first argument into ascending order.
1 |
x |
a matrix. |
... |
other arguments passed to |
roworder
returns an integer vector.
1 2 3 4 5 6 7 8 | x = expand.grid(1:3, 1:2, 3:1)
x = x[sample(seq1(1, nrow(x)), nrow(x)),]
x
ord = roworder(x)
ord
x[ord,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.