Skip to contents

Compute Horizon from Target End Dates

Usage

horizons_from_target_end_dates(
  reference_date,
  target_end_dates,
  horizon_timescale
)

Arguments

reference_date

hub forecasting reference date

target_end_dates

vector of target end dates

horizon_timescale

Either "days" or "weeks"

Value

a vector of forecast horizons, in the specified timescale