## To get start, end and sequence of last 10 days,
## exclude today
last10days <- last_n_days(n = 10)
## include today
last10days_2 <- last_n_days(n = 10, include_current = TRUE)
## To get vector of date sequences
last_n_days(n = 10, part = "sequence")
last_n_days(n = 10)$sequence
seq(last10days)
Run the code above in your browser using DataLab