getHolidays | R Documentation |
Compute the number of holidays (or business days) between two dates
getHolidays(from, to, includeWeekends = FALSE) getBusinessDays(from, to)
from |
A Date object with the start date |
to |
A Date object with the end date |
includeWeekends |
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.
A Date vector with holidays or business days between the given dates
getHolidays(Sys.Date(), Sys.Date() + 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.