Calculate end date for a forecast is targeting.

calc_target_end_date(forecast_date, horizon, temporal_resolution)

Arguments

forecast_date

character vector of dates in 'yyyy-mm-dd' format

horizon

number of weeks ahead a prediction is targeting

temporal_resolution

string of target unit. Currently only 'wk' and 'day' are supported.

Value

character vector of dates in 'yyyy-mm-dd' format