key: Return key variables

View source: R/tsibble-meta.R

keyR Documentation

Return key variables

Description

key() returns a list of symbols; key_vars() gives a character vector.

Usage

key(x)

key_vars(x)

Arguments

x

A tsibble.

Examples

key(pedestrian)
key_vars(pedestrian)

key(tourism)
key_vars(tourism)

tsibble documentation built on June 27, 2024, 5:06 p.m.