Learn R Programming

tsibble (version 0.5.3)

group_by_key: Group by key variables

Description

Group by key variables

Usage

group_by_key(.tbl, .funs = list(), ...)

Arguments

.tbl

A tbl_ts object.

.funs

List of function calls generated by funs(), or a character vector of function names, or simply a function.

Bare formulas are passed to rlang::as_function() to create purrr-style lambda functions. Note that these lambda prevent hybrid evaluation from happening and it is thus more efficient to supply functions like mean() directly rather than in a lambda-formula.

...

Additional arguments for the function calls in .funs. These are evaluated only once, with tidy dots support.

Examples

Run this code
# NOT RUN {
tourism %>%
  group_by_key()
# }

Run the code above in your browser using DataLab