An integer specifying the dimension along which x should be ordered.
names
A character vector
indices
A numeric vector
FUN
A function that can be used in apply(x,dim,FUN)
...
further arguments, ignored.
Value
The reordered object x.
Details
Typical usages are
reorder(x,dim,names)
reorder(x,dim,indices)
reorder(x,dim,FUN)
The result of rename(x,dim,names) is x
reordered such that dimnames(x)[[dim]] is equal to
the concatenation of those elements of names
that are in dimnames(x)[[dim]] and the remaining elements
of dimnames(x)[[dim]].
The result of rename(x,dim,indices) is x
reordered along dim according to indices.
The result of rename(x,dim,indices) is x
reordered along dim according to order(apply(x,dim,FUN)).