View source: R/step-subset-summarise.R
summarise.dtplyr_step | 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, ..., .by = NULL, .groups = NULL)
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.