Given a vector of Date objects, return a sequence from min to max

seq_date(x, t_unit = "day")

Arguments

x

vector of Date objects

t_unit

time steps to use (default: "days")

Value

a new vector with sequence of time steps from min(x) to max(x)

Examples

seq_date(c("2017-01-01", "2017-01-02", "2017-01-15"))
#> [1] "2017-01-01" "2017-01-02" "2017-01-03" "2017-01-04" "2017-01-05" #> [6] "2017-01-06" "2017-01-07" "2017-01-08" "2017-01-09" "2017-01-10" #> [11] "2017-01-11" "2017-01-12" "2017-01-13" "2017-01-14" "2017-01-15"