View source: R/date_management.R
calc_submission_due_date | R Documentation |
Assuming that submissions are made on Mondays, this helper function finds the nearest Monday for which a submission could have been made
calc_submission_due_date(forecast_date, submission_day = "Monday")
forecast_date |
character vector of dates in 'yyyy-mm-dd' format |
submission_day |
day when forecasts have to be submitted. Default is Monday. |
return character vecor with corresponding submission date
## Not run:
calc_submission_due_date(Sys.Date() + 0:7)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.