Available holiday functions are:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
hol_us_federal_holidays(years) hol_new_years_day(years) hol_martin_luther_king_day(years) hol_george_washington_birthday(years) presidents_day(years) hol_memorial_day(years) hol_independence_day(years) hol_labor_day(years) hol_columbus_day(years) hol_veterans_day(years) hol_thanksgiving_day(years) hol_christmas_day(years) hol_good_friday(years) hol_inauguration_day(years) hol_easter(years)
Vector of years
hol_us_federal_holidays(): All US federal holidays.
These are: New Years day, Martin Luther King Jr. day,
Presidents day (George Washington's birthday), Memorial day, Independence
day, Labor day, Columbus day, Veterans day, Thanksgiving day, and Christmas
hol_new_years_day(): New Years day
hol_martin_luther_king_day(): Martin Luther King Jr. day
hol_inauguration_day(): Presidential Inauguration day (every four years)
hol_george_washington_birthday(): George Washington's birthday
hol_presidents_day(): Presidents day; same as
hol_good_friday(): Good Friday (not a federal holiday, but some markets are closed)
hol_easter(): Easter (not a federal holiday)
hol_memorial_day(): Memorial day
hol_independence_day(): Independence day (Fourth of July)
hol_labor_day(): Labor day
hol_columbus_day(): Columbus day
hol_veterans_day(): Veterans day
hol_thanksgiving_day(): Thanksgiving day
hol_christmas_day(): Christmas day
Important note: these holidays only return values when they were celebrated at a federal level. For example, Veterans day is only 1938 onward.
These functions require the
A lot of this code comes from the tis package, but returns dates
Holidays for those years, as a named vector of dates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.