adjust.date: Adjusts the given dates to the next/previous business day
Description
If the given dates are business days it returns the given dates, but once it
is not, it returns the next/previous business days.
Usage
adjust.next(dates, cal = bizdays.options$get("default.calendar"))
adjust.previous(dates, cal = bizdays.options$get("default.calendar"))
Arguments
dates
dates to be adjusted
cal
an instance of Calendar
Value
Date objects adjusted accordingly.
Date types accepted
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.