holiday_scraper: A Holiday Scraper

Description Usage Arguments Examples

View source: R/holiday_scraper.R

Description

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.

Usage

1
2
3
holiday_scraper(countries = c("sweden", "austria", "norway", "denmark",
  "finland", "germany", "netherlands", "uk", "us"), start_year = 2010,
  end_year = 2020)

Arguments

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.

Examples

1
holiday_scraper(countries = c("se", "no", "fi"), start_year = 2015, end_year = 2018)

JNiel/intraMonthDist documentation built on May 7, 2019, 10:12 a.m.