holidays_with_data: Find declared holidays with non-zero data

View source: R/contingency.R

holidays_with_dataR Documentation

Find declared holidays with non-zero data

Description

Days declared as holidays that nonetheless carry non-zero values – usually means the holiday wasn't actually observed at that site, or data entry continued anyway.

Usage

holidays_with_data(holidays, data)

Arguments

holidays

A tibble with a ds column (and typically holiday), the compiled holiday list.

data

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

Value

A tibble with columns ds, holiday, y, sorted by y descending; empty if holidays/data are NULL/empty.

Examples

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

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