as_shared_tsibble: Coerce to a shared tsibble from tsibble

View source: R/shared-data.R

as_shared_tsibbleR 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.

Details

The object returned from as_shared_tsibble() can be piped into all plotly functions to be visualised.

Value

SharedTsibbleData subclassing of SharedData from crosstalk

Examples

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

earowang/tsibbletalk documentation built on Sept. 18, 2023, 10:58 a.m.