mmwr_week_to_season_week: Convert mmwr week to season week

Description Usage Arguments Value

View source: R/datetime-utils.R

Description

Convert mmwr week to season week

Usage

1
mmwr_week_to_season_week(mmwr_week, mmwr_year, first_season_week = 31)

Arguments

mmwr_week

integer vector of weeks in year

mmwr_year

either a single (four digit) integer year or a vector of integer years with the same length as year_week

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 year_week with the week of the season that each observation falls on


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