AddBusinessDays: AddBusinessDays

Description Usage Arguments Details Value Author(s) Examples

View source: R/DateManipulation.R

Description

Function to add a number of business days to a specific date. Currently the function work for returning values between 2000 and 2030.

Usage

1
AddBusinessDays(date = Sys.Date(), numDate, loc = "BOG")

Arguments

date

Initial date, the default is set to the date returned by Sys.Date().

numDate

Number of dates to be add (positive or negative).

loc

String that determines the location for business days. See details.

Details

loc refers to the location for business days:

Value

The output is the final date after adding the number of business dates to the initial date. If the initial date is a non-working date, the result of the function for numDate equal to 0 or 1 is the same.

Author(s)

Diego Jara

Examples

1
2
3
4
5
# Date input as Date object
AddBusinessDays(date = Sys.Date(),numDate = 15,loc = 'BOG')

# Date input as character object
AddBusinessDays(date = as.character(Sys.Date()),numDate = 15,loc = 'BOG')

quantdates documentation built on July 1, 2020, 5:26 p.m.