Supplies holiday data to the TimeWarp package.

Share:

Description

This package is a data-only package that registers holidays with the TimeWarp package. The package has no visible functions or data; it works by calling registerHolidays() from its .onLoad() function.

Note

To create a package with custom holidays (or updated holidays for the holiday series defined in here), either modify the source code of this package, or copy commands from R/holidays.R into a new package.

Author(s)

Jeffrey Horner, Lars Hansen, Tony Plate

Maintainer: Tony Plate tplate@acm.org

See Also

From the TimeWarp package: holidays, registerHolidays, allHolidays.

Examples

1
2
3
# View counts of registered holidays by year
sapply(as.character(1998:2012), function(y)
       sapply(allHolidays(), function(h) length(holidays(y, h, silent=TRUE))))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.