View source: R/custom_period.R
| custom_period | R Documentation | 
Create tpr object between start and end dates
custom_period( start, 
               end,
               part = getOption("timeperiodsR.parts")) 
start | 
 Start date in YYYY-MM-DD format  | 
end | 
 End date in YYYY-MM-DD format  | 
part | 
 Part of period you need to receive, one of "all", "start", "end","sequence", "length", "workdays", "weekends", "first_workday", "last_workday", "first_weekend", "last_weekend", "length". See details.  | 
You can get object of tpr class with all components or specify which component you need, use part for manage this option:
all - get all components
start - get only first date of period
end - get only last date of period
start - get vector of all dates in period
length - get number of dates in period
Object of tpr class
Alexey Seleznev
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.