Learn R Programming

tsibbletalk (version 0.1.0)

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

Run this code
# NOT RUN {
library(tsibble)
as_shared_tsibble(tourism, spec = (State / Region) * Purpose)
# }

Run the code above in your browser using DataLab