Skip to contents

Get a correctly-formatted set of hubverse target_end_date values for the given reference date and set of horizons.

Usage

target_end_dates_from_horizons(
  reference_date,
  horizons,
  horizon_timescale = c("days", "weeks")
)

Arguments

reference_date

hub forecasting reference date

horizons

Vector of forecast horizons to include, in weeks ahead of the reference_date.

horizon_timescale

Either "days" or "weeks"

Value

a vector of target end dates