calc_relative_target: Calculate the effective target relative to the...

View source: R/date_management.R

calc_relative_targetR Documentation

Calculate the effective target relative to the forecast_week_end_date

Description

Calculate the effective target relative to the forecast_week_end_date

Usage

calc_relative_target(forecast_week_end_date, target_end_date, target)

Arguments

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

target

vector of strings specifying targets, e.g. "1 wk ahead inc case"

Value

vector of strings defining the target relative to the forecast_week_end_date


reichlab/covidEnsembles documentation built on Jan. 31, 2024, 7:21 p.m.