orderv | R Documentation |
Produce an ordering permutation from a list of vectors. Essentially a non-...
interface to order
.
orderv(
columns,
...,
na.last = TRUE,
decreasing = FALSE,
method = c("auto", "shell", "radix")
)
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 |
ordering permutation
order
, sortv
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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.