holiday-Listing: List of holidays

listHolidaysR Documentation

List of holidays

Description

Returns a list of holidays.

Usage

listHolidays(pattern = ".*") 

Arguments

pattern

a character string containing a regular expression.

Details

Returns a character vector containing the names of supported holidays matching pattern. The default is to return all holidays.

The list is sorted alphabetically. It is changed from time to time. So, the use of character indexing (possibly representing patterns) on the returned list is strongly recommended.

Value

a character vector

Examples

## Local Swiss Holidays:
listHolidays("CH")

listHolidays("Easter")
listHolidays("NewYear")

## All Holidays
listHolidays()

timeDate documentation built on Sept. 22, 2024, 5:07 p.m.