seq_days: Create a time series on a daily level

Description Usage Arguments Value Examples

View source: R/seq_days.R

Description

Create a vector that consists of a sequence of dates on a daily level. It is created by specifying the start and end day in the format yyyy-mm-dd, for example: "2021-12-31". Be mindful that other date formats are not allowed.

Usage

1
seq_days(from, to)

Arguments

from

string The starting value of the sequence, must be in the format 'YYY-MM-DD'.

to

string The end value of the sequence, must be in the format 'YYY-MM-DD'.

Value

A vector of class date

Examples

1
2
# Create a time series by days:
seq_days(from = "2020-1-1", to = "2021-12-31")

Glender/DutchDayDummies documentation built on Feb. 24, 2022, 7:15 a.m.