tsibble (version 0.6.2)

key_by: Change key variables for a given tbl_ts

Description

Change key variables for a given tbl_ts

Usage

key_by(.data, ...)

Arguments

.data

A tbl_ts.

...

Variables to construct the key.

Examples

Run this code
# NOT RUN {
# By removing `State` from key, it is a valid tsibble too.
tourism %>%
  key_by(Region, Purpose)
# }

Run the code above in your browser using DataCamp Workspace