convert_wk_flu2calendar: Convert flu week to calendar week

View source: R/convert.R

convert_wk_flu2calendarR Documentation

Convert flu week to calendar week

Description

convert_wk_flu2calendar will convert seasonal flu weeks to calendar weeks.

Usage

convert_wk_flu2calendar(week, flu_wk_start = 34)

Arguments

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.

Details

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.

Value

An integer vector representing the calendar week.

Note

Adapted from original with courtesy of M. Parsons.

See Also

convert_wk_calendar2flu

Examples

convert_wk_flu2calendar(18)
convert_wk_flu2calendar(19)
convert_wk_flu2calendar(c(35, 32, 1, 23))
convert_wk_flu2calendar(18, 45)


al-obrien/farrago documentation built on April 14, 2023, 6:20 p.m.