seq.yearweek: Title Create a year-week sequence

View source: R/format.R

seq.yearweekR Documentation

Title Create a year-week sequence

Description

Title Create a year-week sequence

Usage

## S3 method for class 'yearweek'
seq(from, to, by, rangef = "yearweek")

Arguments

from

Start date in yearweek (YYYYWW) or date format

to

End data in yearweek (YYYYWW) or date format

by

Increments for sequence in weeks

rangef

Format of time-range (from and to); one of yearweek or date.Default is yearweek.

Value

Returns a sequence of yearweek values for the range

Examples

# seq.yearweek(from = 202102, to = 202105, by = 1, rangef = "yearweek")
# seq.yearweek(from = "20210205", to = "20210510", by = 2, rangef = "date")



DHatziioanou/simpleepi documentation built on Sept. 24, 2024, 5:25 a.m.