businessDaysBetween | R Documentation |
Compute the number of business days between dates
businessDaysBetween(from, to, includeFirst = TRUE, includeLast = FALSE)
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’ |
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.
A numeric vector with the number of business dates between the corresponding date pair
businessDaysBetween(Sys.Date() + 0:6, Sys.Date() + 3 + 0:6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.