View source: R/date_management.R
calc_relative_horizon | R Documentation |
forecast_week_end_date
Calculate the effective horizon of a forecast relative to the
forecast_week_end_date
calc_relative_horizon(forecast_week_end_date, target_end_date, target)
forecast_week_end_date |
date or vector of dates of the same length as target_end_date, relative to which horizons should be calculated |
target_end_date |
vector of dates defining dates targeted by forecasts, of same length as target |
target |
vector of strings specifying targets, e.g. "1 wk ahead inc case", of same length as target_end_date |
vector of horizons of forecasts relative to the forecast_week_end_date, in units appropriate to the target scale (wk or day)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.