Description Usage Arguments Details Value See Also Examples
add_epi_week takes a data frame that already contains a date column and adds columns for epi-week and epi-year.
1 | add_epi_week(data, date_col, system = "who", ...)
|
data |
A data frame |
date_col |
Name of date column |
system |
Either "who" or "cdc". Defauly is "who".
See |
... |
Additional parameters passed to |
If you do not provide the name of the date column in the supplied data frame, the function looks for a column named "date". If it doesn't find one, it stops with an error. #'
A data frame
Other epi.calendar.functions: epi_week_date
;
epi_week
; epi_year_start
1 2 3 4 | add_epi_week(data.frame(mydate = seq(as.Date("2014-12-26"),
as.Date("2015-01-12"),
by = "day")),
"mydate")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.