epi_year_start: #' Start Dates of Epidemiological Years

Description Usage Arguments Details Value See Also Examples

Description

Function to calculate the start dates of epidemiological years.

Usage

1
epi_year_start(year, system = "who")

Arguments

year

An object that can be coerced to a numeric

system

Either "who" or "cdc". Defauly is "who". See epi_week for details.

Details

The first epi-week always begins on the Sunday that falls in the range of December 29 to January 4. This function determines which date of the first day of epi-week 1. Note that the year of the returned date may not be the same as the year provided, in cases where epi-week 1 begins in December of the previous year.

I'm not sure if it can handle NAs. Some improvements may be needed.

Value

A Date vector

See Also

Other epi.calendar.functions: add_epi_week; epi_week_date; epi_week

Examples

1
epi_year_start(c(2014,2015))

chrismerkord/epical documentation built on May 13, 2019, 6:55 p.m.