Description Usage Arguments Value
View source: R/datetime-utils.R
Convert mmwr week to season week
1 | mmwr_week_to_season_week(mmwr_week, mmwr_year, first_season_week = 31)
|
mmwr_week |
integer vector of weeks in year |
mmwr_year |
either a single (four digit) integer year or a vector of integer years with the same length as year_week |
first_season_week |
number of week in year corresponding to the first week in the season. For example, our code takes this value to be 31: a new influenza season starts on the 31st week of each year. |
vector of the same length as year_week with the week of the season that each observation falls on
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.