semana_epidemiologica: Convert dates to Brazilian epidemiological weeks

View source: R/analytics.R

semana_epidemiologicaR Documentation

Convert dates to Brazilian epidemiological weeks

Description

Epidemiological weeks run from Sunday through Saturday. Week 1 is the Sunday-to-Saturday week containing at least four days of the new year. Dates near New Year can therefore belong to the previous or following epidemiological year.

Usage

semana_epidemiologica(data)

Arguments

data

A 'Date', date-time, or vector of ISO '"YYYY-MM-DD"' strings.

Value

A data frame containing the original date, epidemiological year and week, week start and end, and a stable '"YYYY-Www"' code.

References

Brazilian Ministry of Health, SINAN Epidemiological Calendar: https://portalsinan.saude.gov.br/calendario-epidemiologico

Examples

semana_epidemiologica(as.Date(c("2025-01-01", "2026-01-01")))

datasus documentation built on Oct. 7, 2026, 1:07 a.m.