One common financial markets date arithmetic requires a date needs to be
rolled to the closest business day following some convention (see
is_valid_bdc()
for further details). Such rolled dates can be determined by
calling adjust()
.
adjust(dates, bdc, calendar)
dates | a vector of dates to adjust. |
---|---|
bdc | the business day convention used to roll the |
calendar | an object that inherits from |
a vector of adjusted dates - good days are unadjusted
Other calendar methods: generate_schedule
,
is_good
, is_valid_bdc
,
is
, locale
,
shift
, tz
#> [1] "2012-01-02"#> [1] "2012-01-03"#> [1] "2012-01-03"#> [1] "2011-12-30"#> [1] "2012-01-03"#> [1] "2012-01-03"