Skip to contents

Converts data from hub format to a format suitable for fable modeling. This is essentially a wrapper around convert_hub_to_tsibble with additional preparation for fable models.

Usage

convert_hub_to_fable(hub_data, ...)

Arguments

hub_data

Data frame in hub format

...

Additional arguments passed to convert_hub_to_tsibble

Value

A tsibble object ready for fable modeling

Examples

if (FALSE) { # \dontrun{
hub_data <- data.frame(
  date = seq.Date(as.Date("2023-01-01"), by = "week", length.out = 10),
  location = "US",
  value = rnorm(10, 100, 10)
)
fable_data <- convert_hub_to_fable(hub_data)
} # }