Learn R Programming

tsibble (version 1.1.5)

key: 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

Run this code
key(pedestrian)
key_vars(pedestrian)

key(tourism)
key_vars(tourism)

Run the code above in your browser using DataLab