Description Usage Arguments Details Examples
This function will identify the long holidays taking place in the specified country in the specified year, in a specified year, which are mainly due to public holidays on Fridays or Mondays.
1 2 | longholidays(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 specified year, the country, the start date and day of the long holiday, the end date and day of the long holiday, the total length of the long holiday. Only public holidays are considered (observances and optional holidays are excluded).
1 2 | longholidays("US", "2018", Sys.getenv("CALENDARINDEX_API_KEY"))
longholidays(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.