R/get_target_period.R
get_target_period.Rd
Get the target period for a forecast date, incidence period and ahead
get_target_period(forecast_date, incidence_period, ahead)
forecast_date | Date object or string of the form "YYYY-MM-DD",
indicating date on which forecasts will be made about some period (e.g.,
epiweek). For example, if |
---|---|
incidence_period | String indicating the incidence period, either "epiweek" or "day". |
ahead | Vector of (one or more) integers. How many epiweeks/days ahead
are you forecasting? If |