calc_target_end_date: Calculate end date for a forecast is targeting.

View source: R/date_management.R

calc_target_end_dateR Documentation

Calculate end date for a forecast is targeting.

Description

Calculate end date for a forecast is targeting.

Usage

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


reichlab/covidHubUtils documentation built on Feb. 6, 2024, 1:42 p.m.