arrange {tidyft} | R Documentation |
Arrange entries in data.frame
Description
Analogous function for arrange
in dplyr.
Usage
arrange(.data, ..., cols = NULL, order = 1L)
Arguments
.data |
data.frame |
... |
Arrange by what group? Minus symbol means arrange by descending order. |
cols |
For |
order |
For |
Details
Once arranged, the order of entries would be changed forever.
Value
A data.table
See Also
Examples
a = as.data.table(iris)
a %>% arrange(Sepal.Length)
a
a %>% arrange(cols = c("Sepal.Width","Petal.Length"))
a
[Package tidyft version 0.5.7 Index]