## To create tpr object between two dates
customper <- custom_period(start = "2019-09-01",
end = "2019-09-05")
## To get vector of date sequences
seq(customper)
## Get number of days of previous months
length(customper)
## To get start of end dates
start(customper)
end(customper)
Run the code above in your browser using DataLab