Skip to content

epi_year

Syntax

epi_year()

Description

Returns the 4-digit epidemiological year, the start and end of which correspond to the start and end of the first and last epidemiological weeks of the year.

Examples

If the current simulation day is Friday January 1st, 2021, then

x = epi_year()

assigns 2020 to some numeric variable x, as it is still the last epidemiological week of the epidemiological year of 2020.

See Also