advanceDate: Advance a date

View source: R/RcppExports.R

advanceDateR Documentation

Advance a date

Description

Advance a date to the next business day plus an optional shift

Usage

advanceDate(rd, days = 0L)

Arguments

rd

A Date object describing the date to be advanced to the next business day.

days

An optional integer offset applied to the date

Details

This function takes a given date and advances it to the next business day under the current (global) calendar setting. If an optional offset value is given it is applied as well.

Value

The advanced date is returned

Examples

advanceDate(Sys.Date(), 2)  # today to the next biz day, plus 2 days

RcppQuantuccia documentation built on May 29, 2024, 7:21 a.m.