Description Usage Arguments Details Value References Examples
Calculate Gregorian calendar dates based on epidemiological years, week numbers, and weekday numbers.
1 | make_date_yw(year = 1970L, week = 1L, weekday = 1L, system = "ISO")
|
year |
epidemiological year |
week |
eidemiological week number (1–53). |
weekday |
epidemiological weekday number (1–7). Day 1 is a Monday in the ISO-8601 WHO system and a Sunday in the CDC system. |
system |
String indicating the standard (WHO ISO-8601 or CDC epi weeks) that the weeks of the year in epidemiological and environmental reference data use ["ISO" or "CDC"]. (Required: epidemiological observation dates listed are LAST day of week).#' |
Arguments 'year', 'week', and 'weekday' are recycled as necessary.
A vector of class 'Date'.
https://en.wikipedia.org/wiki/ISO_week_date https://www.cmmcp.org/sites/cmmcp/files/uploads/spring_skeeter_06.pdf
1 2 3 4 5 6 7 8 9 10 | make_date_yw(2017, 1)
make_date_yw(2017, 1, 2)
make_date_yw(2017, 1, system = "CDC")
make_date_yw(2017, 1, system = "ISO")
make_date_yw(2017, 1, 2, system = "ISO")
# arguments are recycled
make_date_yw(2017, 1:10)
make_date_yw(2017, 1, 1:7)
make_date_yw(2010:2017, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.