Description Usage Arguments Details Examples
This function will generate a dataframe containing a list of all holidays containing all the holidays that are taking place within a specified year in a specified country.
1 2 | holidaylist(country = c("US"), year = "2018",
api_key = Sys.getenv("CALENDARINDEX_API_KEY"))
|
country |
a single ISO 3166 country code or a list of ISO 3166 country codes from the 'countrycode' dataset in this package. |
year |
the year of interest |
api_key |
personal CalendarIndex API key |
The dataframe will include the date of holiday, the country, the name of holiday, and the type of holiday (public, observance, optional, etc).
1 2 | holidaylist("US", "2018", Sys.getenv("CALENDARINDEX_API_KEY"))
holidaylist(c("US", "AD"), "2016", api_key = Sys.getenv("CALENDARINDEX_API_KEY"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.