Date types accepted
The arguments from
and to
accept 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.Recycle rule
These arguments handle the recycle rule so vectors of dates can be provided
and once those vectors differs in length the recycle rule is applied.Date adjustment
from
and to
are adjusted when nonworking dates are
provided. Since bizdays
function returns the amount of business days
between 2 dates, it must start and end in business days.
The default behavior, that is defined in Calendar
's instantiation with
adjust.from
and adjust.to
, reproduces the Excel's NETWORKDAYS.
A common and useful setting is adjust.to=adjust.next
which moves
expiring maturities to the next business day, once it is not.