mmwr_week_to_season: get season in which an mmwr week falls

Description Usage Arguments Value

View source: R/datetime-utils.R

Description

get season in which an mmwr week falls

Usage

1
mmwr_week_to_season(mmwr_week, mmwr_year, first_season_week = 31)

Arguments

mmwr_week

mmwr week as an integer (only the week)

mmwr_year

year for mmwr week as an integer first_season_week = 31,

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.

Value

vector of the same length as mmwr_week with season in which the week falls, in the format "2018/2019"


reichlab/cdcfluutils documentation built on March 12, 2020, 2:49 p.m.