powered by
Compute the number of holidays (or business days) between two dates
getHolidays(from, to, includeWeekends = FALSE)getBusinessDays(from, to)
getBusinessDays(from, to)
A Date vector with holidays or business days between the given dates
A Date object with the start date
A Date object with the end date
A boolean indicating if weekends should be included, default is ‘FALSE’
This function takes a start and end date and returns a vector of holidays (or business days) between them according to the active calendar.
getHolidays(Sys.Date(), Sys.Date() + 30)
Run the code above in your browser using DataLab