BusinessDays: BusinessDays

Description Usage Arguments Details Value Author(s) Examples

View source: R/DateManipulation.R

Description

Calculate business days for a given location. Data availability depends on the location.

Usage

1
BusinessDays(loc = "BOG", from = NULL, to = NULL)

Arguments

loc

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

from

If provided returns available business dates after this date (inclusive).

to

If provided returns available business dates until this date (inclusive).

Details

loc refers to the location for business days:

Value

Vector of business days. Data availability depends on the location.

Author(s)

Diego Jara and Julian Chitiva

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Returns all business days available for the location
BusinessDays(loc='BOG')

# Returns business days within given range for the location and Dates as
# character
BusinessDays(loc='BOG', from='2020-10-10', to='2020-11-10')

# Returns business days within given range for the location and Dates as
# Dates
BusinessDays(loc='BOG', from=as.Date('2020-10-10'), to='2020-11-10')

# Returns all available business days for the locatio after given
# 'from' date as character
BusinessDays(loc='BOG', from='2020-10-10')

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