Return the date of the **Saturday that follows** the forecast date. The `reference_date` is defined for forecast hubs as the Saturday Following the forecast date.
Value
A `Date` vector of the same length as `forecast_date`, giving the Saturday on or after `forecast_date`. `NA` inputs yield `NA` outputs.
The function is fully vectorized.
Examples
# Basic usage
get_reference_date("2025-10-13")
#> [1] "2025-10-18"
#> "2025-10-18"
# Input is Saturday: strictly after by default
get_reference_date(as.Date("2025-10-18"))
#> [1] "2025-10-18"
#> "2025-10-25"
# Allow returning the same day if it is Saturday
get_reference_date("2025-10-18")
#> [1] "2025-10-18"
#> "2025-10-18"