isBusinessDay: Test for business days

View source: R/RcppExports.R

isBusinessDayR Documentation

Test for business days

Description

Test a vector of dates for business day

Usage

isBusinessDay(dates = NULL, xp = NULL)

Arguments

dates

An optional Date vector with dates to be examined, if missing the current day is used

xp

An optional calendar object, if missing the default instance is used

Details

This function takes a vector of dates and returns a logical vector of the same length indicating at each position whether the corresponding date is a business day in the currently active (global) calendar.

Value

A logical vector indicating which dates are business days

Examples

isBusinessDay(Sys.Date()+0:6)

qlcal documentation built on Feb. 18, 2026, 5:07 p.m.