Skip to contents

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.

Usage

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)

Arguments

year

numeric A vector of year integers.

name

character Name of the holiday represented by the holiday_dates vector.

holiday_dates

Dates A vector of dates representing the holiday.

Value

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.

Examples

{
# Individual Holidays
library(holiday.dates)
years <- seq(2015,2020, by = 1)
US_ValentinesDay <- USValentinesDay(years) %>% as.Date()
Name_Valentines <- Holiday_Names("ValentinesDay",US_ValentinesDay)
}