time_components: Extract time components from a model

View source: R/components.R

time_componentsR Documentation

Extract time components from a model

Description

For a mable with a single model column, return the model components that are indexed by time.

Usage

time_components(object, ...)

Arguments

object

A vital mable object with a single model column.

...

Not currently used.

Value

tsibble object containing the time components from the model.

Examples

norway_mortality |>
  dplyr::filter(Sex == "Female") |>
  model(lee_carter = LC(log(Mortality))) |>
  time_components()

vital documentation built on Aug. 21, 2025, 5:34 p.m.