convert_wk_calendar2flu: Convert calendar week to flu week

View source: R/convert.R

convert_wk_calendar2fluR Documentation

Convert calendar week to flu week

Description

convert_wk_calendar2flu will convert calendar week to seasonal flu week.

Usage

convert_wk_calendar2flu(week, flu_wk_start = 34)

Arguments

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.

Details

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.

Value

An integer vector representing the flu week.

Note

Adapted from original with courtesy of M. Parsons.

See Also

convert_wk_flu2calendar

Examples

convert_wk_calendar2flu(34)
convert_wk_calendar2flu(35)
convert_wk_calendar2flu(c(35, 32, 1, 23))
convert_wk_calendar2flu(35, 45)


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