Adapted from cdcfluview::mmwr_week_to_date.
This function transforms MMWR epidemiological year+week (or year+week+day) to a date object. This was implemented based on the cdcfluview::mmwr_week_to_date function, which adapted similar functionality from the MMWRweek package.
Arguments
- year
- Vector of epidemiological year(s); must be same length as "week" and "day" (unless "day" is - NULL)
- week
- Vector of epidemiological week(s); must be same length as "year" and "day" (unless "day" is - NULL)
- day
- Vector of day(s); must be same length as "week" and "year" (unless set to is - NULL); default is- NULLand the day returned will be the first day of the epidemiological week (i.e., Sunday)