arrange_dt | R Documentation |
Order the rows of a data frame rows by the values of selected columns.
arrange_dt(.data, ...)
.data |
data.frame |
... |
Arrange by what group? Minus symbol means arrange by descending order. |
data.table
arrange
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.