summarise.duckplyr_df | R Documentation |
This is a method for the dplyr::summarise()
generic.
See "Fallbacks" section for differences in implementation.
summarise()
creates a new data frame.
It returns one row for each combination of grouping variables;
if there are no grouping variables,
the output will have a single row summarising all observations in the input.
It will contain one column for each grouping variable
and one column for each of the summary statistics that you have specified.
## S3 method for class 'duckplyr_df'
summarise(.data, ..., .by = NULL, .groups = NULL)
There is no DuckDB translation in summarise.duckplyr_df()
with .groups = "rowwise"
.
These features fall back to dplyr::summarise()
, see vignette("fallback")
for details.
dplyr::summarise()
library(duckplyr)
summarise(mtcars, mean = mean(disp), n = n())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.