Learn R Programming

RcppQuantuccia (version 0.1.2)

isHoliday: Test for holidays

Description

Test a vector of dates for holiday

Usage

isHoliday(dates)

Value

A logical vector indicating which dates are holidays

Arguments

dates

A Date vector with dates to be examined

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 holiday in the currently active (global) calendar.

Examples

Run this code
isHoliday(Sys.Date()+0:6)

Run the code above in your browser using DataLab