Description Usage Arguments Details Value See Also Examples
Function to calculate the start dates of epidemiological years.
1 | epi_year_start(year, system = "who")
|
year |
An object that can be coerced to a |
system |
Either "who" or "cdc". Defauly is "who".
See |
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.
A Date
vector
Other epi.calendar.functions: add_epi_week
;
epi_week_date
; epi_week
1 | epi_year_start(c(2014,2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.