seq_isoweek: Generate regular sequences of ISO weeks

View source: R/isoweekStart.R

seq_isoweekR Documentation

Generate regular sequences of ISO weeks

Description

Take two ISO week numbers (of the form YYYYWW) and returns a regular sequence of ISO weeks covering the entire range.

Usage

seq_isoweek(from, to = NULL)

Arguments

from

Numeric vector of length 1 (first week of sequence), or of length 2 (week range) if to is NULL

to

Numeric vector of length 1 (last week of sequence), or NULL (in which case from must be a range of weeks).

Value

A numeric vector of ISO weeks covering the provided range.

Examples

seq_isoweek(c(202001, 202301))
seq_isoweek(201840, 201920)  # Typical influenza surveillance period


thlytras/Rivets documentation built on April 16, 2024, 5:43 a.m.