orderv {wrapr} | R Documentation |
Order by a list of vectors.
Description
Produce an ordering permutation from a list of vectors. Essentially a non-...
interface to order
.
Usage
orderv(
columns,
...,
na.last = TRUE,
decreasing = FALSE,
method = c("auto", "shell", "radix")
)
Arguments
columns |
list of atomic columns to order on, can be a |
... |
not used, force later arguments to bind by name. |
na.last |
(passed to |
decreasing |
(passed to |
method |
(passed to |
Value
ordering permutation
See Also
Examples
d <- data.frame(x = c(2, 2, 3, 3, 1, 1), y = 6:1)
d[order(d$x, d$y), , drop = FALSE]
d[orderv(d), , drop = FALSE]