convert_wk_flu2calendar | R Documentation |
convert_wk_flu2calendar
will convert seasonal flu weeks to calendar weeks.
convert_wk_flu2calendar(week, flu_wk_start = 34)
week |
An integer between 1 and 52 representing the flu week to convert. |
flu_wk_start |
Week of the year that flu season begins; default set to 34. |
Converts between seasonal flu weeks and calendar weeks, which is often used in influenza reporting.
Calendar weeks starts from week 1 in January to week 52/53. Seasonal flu weeks begins at the start of the
influenza season (Week 1) up to the week prior to the following influenza season (week 52/53). The start point of
the influenza season can change from year to year. You can perform the opposite operation via convert_wk_calendar2flu
.
An integer vector representing the calendar week.
Adapted from original with courtesy of M. Parsons.
convert_wk_calendar2flu
convert_wk_flu2calendar(18)
convert_wk_flu2calendar(19)
convert_wk_flu2calendar(c(35, 32, 1, 23))
convert_wk_flu2calendar(18, 45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.