longholidays: Identifying long blocks of holidays

Description Usage Arguments Details Examples

Description

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.

Usage

1
2
longholidays(country = c("US"), year = "2018",
  api_key = Sys.getenv("CALENDARINDEX_API_KEY"))

Arguments

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

Details

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

Examples

1
2
longholidays("US", "2018", Sys.getenv("CALENDARINDEX_API_KEY"))
longholidays(c("US", "AD"), "2016", api_key = Sys.getenv("CALENDARINDEX_API_KEY"))

ongzuchengmark/holidayplanneR documentation built on May 21, 2019, 10:12 a.m.