as_shared_tsibble {tsibbletalk}R Documentation

Coerce to a shared tsibble from tsibble

Description

Coerce to a shared tsibble from tsibble

Usage

as_shared_tsibble(x, spec)

Arguments

x

A tsibble.

spec

A formula to specify tsibble key structures. By default, crossing structures (i.e key1 * key2) are assumed for the key. The required specification for nesting is parent / child.

Examples

library(tsibble)
as_shared_tsibble(tourism, spec = (State / Region) * Purpose)

[Package tsibbletalk version 0.1.0 Index]