arrange.dtplyr_step {dtplyr} | R Documentation |
Arrange rows by column values
Description
This is a method for dplyr generic arrange()
. It is translated to
an order()
call in the i
argument of [.data.table
.
Usage
## S3 method for class 'dtplyr_step'
arrange(.data, ..., .by_group = FALSE)
Arguments
.data |
A |
... |
< |
.by_group |
If |
Examples
library(dplyr, warn.conflicts = FALSE)
dt <- lazy_dt(mtcars)
dt %>% arrange(vs, cyl)
dt %>% arrange(desc(vs), cyl)
dt %>% arrange(across(mpg:disp))
[Package dtplyr version 1.3.1 Index]