date_to_week_end_date: Calculate the date of the Saturday that ends the MMWR...

View source: R/date_management.R

date_to_week_end_dateR Documentation

Calculate the date of the Saturday that ends the MMWR epidemic week for the given date,offset a specified number of epidemic week from a specified date

Description

Calculate the date of the Saturday that ends the MMWR epidemic week for the given date,offset a specified number of epidemic week from a specified date

Usage

date_to_week_end_date(forecast_date, week_offset = 0)

Arguments

forecast_date

vector of dates as Date objects

week_offset

vector of week offsets. must be either length 1 or the same length as forecast_date

Value

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


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