Learn R Programming

tsibble (version 0.6.1)

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 DataLab