Summarize event log
summarise(.data, ..., .by = NULL, .groups = NULL)
The summarize function returns a tibble, no event log. All groups will be removed.
log
: Object of class eventlog
or activitylog
Name-value pairs of summary functions
<tidy-select
> Optionally, a selection of columns to
group by for just this operation, functioning as an alternative to group_by()
. For
details and examples, see ?dplyr_by.
Grouping structure of the
result.
"drop_last": dropping the last level of grouping. This was the only supported option before version 1.0.0.
"drop": All levels of grouping are dropped.
"keep": Same grouping structure as .data
.
"rowwise": Each row is its own group.
When .groups
is not specified, it is chosen
based on the number of rows of the results:
If all the results have 1 row, you get "drop_last".
If the number of rows varies, you get "keep" (note that returning a
variable number of rows was deprecated in favor of reframe()
, which
also unconditionally drops all levels of grouping).
In addition, a message informs you of that choice, unless the result is ungrouped,
the option "dplyr.summarise.inform" is set to FALSE
,
or when summarise()
is called from a function in a package.