# S3 method for tbl_ts
group_by(.data, ..., add = FALSE)
# S3 method for grouped_ts
ungroup(x, ...)
Arguments
.data
A tsibble.
...
Variables to group by. It follows a consistent rule as the "key"
expression in as_tsibble, which means | for nested variables and , for
crossed variables. The following operations will affect the tsibble structure
based on the way how the variables are grouped.
add
TRUE adds to the existing groups, otherwise overwrites.