holiday_contingency: Run both holiday consistency checks at once

View source: R/contingency.R

holiday_contingencyR Documentation

Run both holiday consistency checks at once

Description

Bundles holidays_with_data() and always_zero_dates() – the app's full "consistency check."

Usage

holiday_contingency(holidays, data)

Arguments

holidays

A tibble with a ds column, the compiled holiday list.

data

A tibble with ds/y columns, the finalized dataset.

Value

A list with with_data (see holidays_with_data()) and always_zero (see always_zero_dates()).

Examples

holidays <- tibble::tibble(ds = as.Date("2024-01-01"), holiday = "New Year")
data <- tibble::tibble(ds = as.Date("2024-01-01"), y = 5)
holiday_contingency(holidays, data)

forecastsuite documentation built on Oct. 18, 2026, 5:08 p.m.