roworder: Matrix Ordering Permutation

Description Usage Arguments Value See Also Examples

Description

roworder returns a permutation which rearranges the rows of its first argument into ascending order.

Usage

1

Arguments

x

a matrix.

...

other arguments passed to order.

Value

roworder returns an integer vector.

See Also

order

Examples

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,]

docopulae documentation built on May 2, 2019, 7:53 a.m.