businessDaysBetween: Compute number of business dates between calendar dates
Description
Compute the number of business days between dates
Usage
businessDaysBetween(from, to, includeFirst = TRUE, includeLast = FALSE)
Value
A numeric vector with the number of business dates between the
corresponding date pair
Arguments
from
A Date vector with interval start dates
to
A Date vector with interval end dates
includeFirst
A boolean indicating if the start date is included, default
is ‘TRUE’
includeLast
A boolean indicating if the end date is included, default
is ‘FALSE’
Details
This function takes two vectors of start and end dates and returns another
vector of the number of business days between each corresponding date pair
according to the active calendar.