Creates a unique, ordered complete Date or POSIXct vector.

dtt_seq(from = dtt_date("2000-01-01"), to = dtt_date("2000-01-01"),
  units = "days", length_out = NULL)

Arguments

from

A Date or POSIXct scalar of the start date.

to

A Date or POSIXct scalar of the to date.

units

A string of the units.

length_out

An integer of the number of units from from.

Value

A Date or POSIXct vector.

Examples

dtt_seq(Sys.Date() - 1, Sys.time())
#> [1] "2020-03-04" "2020-03-05"