| always_zero_dates | R Documentation |
Calendar dates (month-day) that are zero or missing in every year present – these look like de facto holidays/closures that were never declared, so a holiday-aware model can't account for them.
always_zero_dates(data, holidays = NULL)
data |
A tibble with |
holidays |
Optional tibble with a |
A tibble with columns ds, flag ("Zero every year" or
"Missing every year"), and declared_holiday (logical) – the
undeclared rows are the actual gap.
data <- tibble::tibble(
ds = c(as.Date("2023-01-01"), as.Date("2024-01-01"), as.Date("2023-06-01")),
y = c(0, 0, 5)
)
always_zero_dates(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.