add_holidays | R Documentation |
These functions add holiday dates that are not found in the timeDate package. These are either new federal holidays, or they are retail holidays which are not covered in the timeDate package.
USValentinesDay(year = timeDate::getRmetricsOptions("currentYear"))
USSuperBowl(year = timeDate::getRmetricsOptions("currentYear"))
USSaintPatricksDay(year = timeDate::getRmetricsOptions("currentYear"))
USMothersDay(year = timeDate::getRmetricsOptions("currentYear"))
USFathersDay(year = timeDate::getRmetricsOptions("currentYear"))
USHalloweenDay(year = timeDate::getRmetricsOptions("currentYear"))
USCyberMonday(year)
USBack2School(year = timeDate::getRmetricsOptions("currentYear"))
USTgt_Cirle_Wk_Summer(year = timeDate::getRmetricsOptions("currentYear"))
USTgt_Cirle_Wk_Fall(year = timeDate::getRmetricsOptions("currentYear"))
USJuneteenthDay(year = timeDate::getRmetricsOptions("currentYear"))
Holiday_Names(name, holiday_dates)
year |
|
name |
|
holiday_dates |
|
These functions return the dates of the holiday specified in the
name of the function. For example, USValentinesDay()
will provide the dates
for valentines day in the US when passed a vector of years.
{
# Individual Holidays
library(holiday.dates)
years <- seq(2015,2020, by = 1)
US_ValentinesDay <- USValentinesDay(years) %>% as.Date()
Name_Valentines <- Holiday_Names("ValentinesDay",US_ValentinesDay)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.