Description Usage Arguments Examples
View source: R/holiday_scraper.R
This function allows you to gather holiday dates and their type for specified countries over a specified time period. Data is gathered from timeanddate.com, so make sure your internet connection is up for it to work properly. Output data frame "master calendar" with variables: country - Country for given holiday dates. year - Year of given holiday dates. Date - date of the actual holiday listed. holiday_name - Official name of holiday given in calendar. holiday_type - Type of holiday. All types are included here, in total 26 different. Date_fmt - Date output in date format Y-m-d.
1 2 3 | holiday_scraper(countries = c("sweden", "austria", "norway", "denmark",
"finland", "germany", "netherlands", "uk", "us"), start_year = 2010,
end_year = 2020)
|
countries |
Vector with countries for which holidays are wanted. Full name, lower case, with exception of "uk" and "us". Defaults to c("sweden", "norway", "denmark", "finland", "germany", "netherlands", "uk", "us"). |
start_year |
Numeric year of which you want the calendar to start from. Defaults to 2010. |
end_year |
Numeric year of which you want the calendar to end at. Defaults to 2020. |
1 | holiday_scraper(countries = c("se", "no", "fi"), start_year = 2015, end_year = 2018)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.