Generates sequences of dates

generate_dates(start_date = NULL, end_date = NULL, time_interval = "days")

Arguments

start_date

date to start if NULL defaults to 3 months ago

end_date

date to end if NULL defaults to system time

time_interval

time interval sequences

  • months

  • weeks

  • hours

  • minutess

Value

a `vector` of date times

Examples

generate_dates(start_date = Sys.Date()  -365, end_date = Sys.Date(), time_interval = "weeks")