date_to_epiyw: Convert a date to epiyearweek format
Description
The conversion is done following the ISO 8601 standard,
whereby the first week of the year is the one that contains at
least four days of the new year. This coincides with the
approach taken by lubridate::epiweek and lubridate::isoweek
but may not coincide with other definitions of epidemiological weeks.
Usage
date_to_epiyw(date, weekday = "Monday")
Value
The transformed dates to epiyearweek.
Arguments
date
A vector of type 'Date'.
weekday
The weekday that determines the start of the week. Defaults to
'Monday'.