sortv | R Documentation |
Sort a data.frame by a set of columns.
sortv(
data,
colnames,
...,
na.last = TRUE,
decreasing = FALSE,
method = c("auto", "shell", "radix")
)
data |
data.frame to sort. |
colnames |
column names to sort on. |
... |
not used, force later arguments to bind by name. |
na.last |
(passed to |
decreasing |
(passed to |
method |
(passed to |
ordering permutation
orderv
d <- data.frame(x = c(2, 2, 3, 3, 1, 1), y = 6:1)
sortv(d, c("x", "y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.