season_week_to_year_week: Convert season week to year week

Description Usage Arguments Value

View source: R/utils.R

Description

Convert season week to year week

Usage

1
2
season_week_to_year_week(season_week, first_season_week = 31,
  weeks_in_first_season_year)

Arguments

season_week

vector of indices of weeks in season

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.

weeks_in_first_season_year

How many MMWR weeks are in the first year of the season? For example, in the 2000/2001 season, the first year is 2000. There were 52 MMWR weeks in 2000.

Value

vector of the same length as season_week with the week of the year that each observation falls on


reichlab/2017-2018-cdc-flu-contest documentation built on May 24, 2019, 6:17 a.m.