bizdayse stands for business days equivalent, it returns the amount
of business days equivalent to a given number of current days.
bizdayse(dates, curd, cal)An integer representing an amount of business days.
Let us suppose I have a reference date dates and I offset that date
by curd current days. bizdayse returns the business days
between the reference date and the new date offset by curd current
days.
This is equivalent to
The argument dates accepts Date objects and any
object that returns a valid Date object when passed through
as.Date, which include all POSIX* classes and character
objects with ISO formatted dates.
These arguments handle the recycle rule so a vector of dates and a vector of numbers can be provided and once those vectors differs in length the recycle rule is applied.
bizdayse("2013-01-02", 3, "Brazil/ANBIMA")
#> [1] 2