arrange_dt {tidyfst} | R Documentation |
Arrange entries in data.frame
Description
Order the rows of a data frame rows by the values of selected columns.
Usage
arrange_dt(.data, ...)
Arguments
.data |
data.frame |
... |
Arrange by what group? Minus symbol means arrange by descending order. |
Value
data.table
See Also
Examples
iris %>% arrange_dt(Sepal.Length)
# minus for decreasing order
iris %>% arrange_dt(-Sepal.Length)
# arrange by multiple variables
iris %>% arrange_dt(Sepal.Length,Petal.Length)
[Package tidyfst version 1.7.9 Index]