Arrange entries in data.frame
Analogous function for arrange
in dplyr.
arrange(.data, ..., cols = NULL, order = 1L)
.data |
data.frame |
... |
Arrange by what group? Minus symbol means arrange by descending order. |
cols |
For |
order |
For |
Once arranged, the order of entries would be changed forever.
A data.table
a = as.data.table(iris) a %>% arrange(Sepal.Length) a a %>% arrange(cols = c("Sepal.Width","Petal.Length")) a
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.