summarise.dtplyr_step {dtplyr} | R Documentation |
This is a method for the dplyr summarise()
generic. It is translated to
the j
argument of [.data.table
.
## S3 method for class 'dtplyr_step' summarise(.data, ...)
.data |
A |
... |
< The value can be:
|
library(dplyr, warn.conflicts = FALSE) dt <- lazy_dt(mtcars) dt %>% group_by(cyl) %>% summarise(vs = mean(vs)) dt %>% group_by(cyl) %>% summarise(across(disp:wt, mean))