Learn R Programming

openholidaysR (version 0.1.0)

oh_stat_public_holidays: Reads statistical data about stored holidays

Description

Reads statistical data about stored holidays

Usage

oh_stat_public_holidays(country, subdivision = NULL)

oh_stat_school_holidays(country, subdivision = NULL)

Value

A data frame containing youngestStartDate and oldestStartDate.

Arguments

country

Country ISO code (e.g., "DE").

subdivision

Optional subdivision ID (if you want holidays for a specific state/province).

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("IN_PKGDOWN"), "true")
# Statistical data about public holidays in Germany
oh_stat_public_holidays(country = "DE")

# Statistical data about school holidays in Hamburg
oh_stat_school_holidays(country = "DE", subdivision = "DE-HH")
}

Run the code above in your browser using DataLab