holiday_query: Holiday Query

Description Usage Arguments Value Examples

View source: R/holiday_query.R

Description

An easy query that selects a specific holiday and year or years

Usage

1
holiday_query(holiday_name, holiday_years = NULL)

Arguments

holiday_name

A required argument that specifies the holiday name

holiday_years

An optional argument that selects the years for the holiday. This argument takes four-digit numeric values. It can be a single year, a range of years, or a vector of different years

Value

A dataframe of selected holiday dates

Examples

1
2
3
holiday_query('thanksgiving',2000)
holiday_query('new year',2018:2020)
holiday_query('mlk day', c(1990,2000,2100))

mingbogo/holidayR documentation built on Jan. 20, 2020, 12:28 p.m.