convert_wk_calendar2flu | R Documentation |
convert_wk_calendar2flu
will convert calendar week to seasonal flu week.
convert_wk_calendar2flu(week, flu_wk_start = 34)
week |
An integer between 1 and 52 representing the calender week to convert. |
flu_wk_start |
Week of the year that flu season begins; default set to 34. |
Converts between calendar weeks and seasonal flu 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_flu2calendar
.
An integer vector representing the flu week.
Adapted from original with courtesy of M. Parsons.
convert_wk_flu2calendar
convert_wk_calendar2flu(34)
convert_wk_calendar2flu(35)
convert_wk_calendar2flu(c(35, 32, 1, 23))
convert_wk_calendar2flu(35, 45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.