calc_submission_due_date: Calculate the submission date that corresponds to a given...

View source: R/date_management.R

calc_submission_due_dateR Documentation

Calculate the submission date that corresponds to a given forecast date

Description

Assuming that submissions are made on Mondays, this helper function finds the nearest Monday for which a submission could have been made

Usage

calc_submission_due_date(forecast_date, submission_day = "Monday")

Arguments

forecast_date

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

submission_day

day when forecasts have to be submitted. Default is Monday.

Value

return character vecor with corresponding submission date

Examples

## Not run: 
calc_submission_due_date(Sys.Date() + 0:7)

## End(Not run)

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