| epiyearweek | R Documentation |
Compute epiyearweek (yyyyww) indicators from dates.
epiyearweek(date, start = "Sunday")
date |
A date vector to compute epiweekyear. |
start |
First day of the epiweek. Defaults to 'Sunday', but can be also set to 'Monday'. |
The function uses lubridate's epi/iso week/year functions to compute the conversion.
An epiweekyear character vector.
input_dates <- seq.Date(as.Date("2025-01-01"), length.out = 7, by = "week")
epiyearweek(input_dates)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.