Description Usage Arguments Details Value See Also Examples
Function to calculate the epidemiological weeks in which one or more calendar dates fall.
1 |
x |
A Date vector, or another vector that can be converted to Date using
|
system |
Either "who" or "cdc". WHO epidemiological weeks start on Monday. CDC epidemiological weeks (MMWR weeks) start on Sunday |
... |
Additional parameters passed to |
The function first converts date
to a Date
object using the
function as.Date()
. I welcome suggestions for making this more robust.
A data frame with columns labeled epi_week
and
epi_year
. The object also has class tbl_df and tbl for use with the
dplyr
package.
Other epi.calendar.functions: add_epi_week
;
epi_week_date
; epi_year_start
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.