R: Change key variables for a given 'tbl_ts'

key_by {tsibble} | R Documentation

## 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

    # By removing `State` from key, it is a valid tsibble too.
    tourism %>%
      key_by(Region, Purpose)

[Package tsibble version 0.6.2 Index]