adjust.date: Adjusts the given dates to the next/previous business day

Description Usage Arguments Value Date types accepted

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.

next biz date

previous biz date

Usage

1
2
3
4
5
lhs %+% rhs

nextbiz(lhs, method = "previous", cal = getOption("calendar"))

prevbiz(lhs, method = "next", cal = getOption("calendar"))

Arguments

lhs

dates to be adjusted

rhs

offset days

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.


jokbull/bizday documentation built on May 19, 2019, 6:19 p.m.