Count the number of business days between a range of dates, inclusively.
Usage
count_bizdays(from, to, holidays, weekend = c("Sat", "Sun"))Arguments
- from
The beginning of the date range.
- to
The end of the date range.
- holidays
A vector of dates that are holidays.
- weekend
A character vector of three-letter abbreviations of weekday names indicating days that should be considered a weekend. Acceptable values are:
"Sun","Mon","Tue","Wed","Thu","Fri","Sat".
Details
Holiday dates can be obtained using get_holidays(), get_province(), or by defining a custom
vector of holidays.
