as_shared_tsibble: Coerce to a shared tsibble from tsibble

Description Usage Arguments Examples

View source: R/shared-data.R

Description

Coerce to a shared tsibble from tsibble

Usage

1

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

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

tsibbletalk documentation built on Oct. 23, 2020, 8:09 p.m.