epiyearweek: Compute epiyearweek (yyyyww) indicators from dates.

View source: R/epiyearweek.R

epiyearweekR Documentation

Compute epiyearweek (yyyyww) indicators from dates.

Description

Compute epiyearweek (yyyyww) indicators from dates.

Usage

epiyearweek(date, start = "Sunday")

Arguments

date

A date vector to compute epiweekyear.

start

First day of the epiweek. Defaults to 'Sunday', but can be also set to 'Monday'.

Details

The function uses lubridate's epi/iso week/year functions to compute the conversion.

Value

An epiweekyear character vector.

Examples

input_dates <- seq.Date(as.Date("2025-01-01"), length.out = 7, by = "week")
epiyearweek(input_dates)

epidesc documentation built on Aug. 8, 2026, 1:06 a.m.