knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Season week conversion is used for certain outcome of interest, such as influenza.

ISO week can be 1 to 53.

Season week can be 1 to 52. ISO week 53 is season week 23.5.

library(fhitime)
library(magrittr)
seasonweek_to_isoweek_c(10)
seasonweek_to_isoweek_n(10)
isoweek_to_seasonweek_n(1)  # only has n
seasonweek_to_isoweek_n(1:52)
isoweek_to_seasonweek_n(1:53)  


folkehelseinstituttet/fhitime documentation built on Dec. 20, 2021, 8:49 a.m.