Learn R Programming

timeDate (version 4051.111)

listHolidays: List of holidays

Description

Returns a list of holidays supported by package "timeDate".

Usage

listHolidays(pattern = ".*")

Value

a character vector, sorted in alphabetical order

Arguments

pattern

a character string containing a regular expression.

Details

Gives 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.

See Also

BoxingDay, etc., for descriptions of the individual holiday functions,

holiday alternative to calling directly individual holiday functions (takes one or more holiday functions as argument),

Easter,

holidayLONDON, holidayNERC, holidayNYSE, holidayTSX, holidayZURICH for holidays at major financial centers.

Examples

Run this code
## Local Swiss Holidays:
listHolidays("CH")

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

## All Holidays
listHolidays()

Run the code above in your browser using DataLab