Holiday Data
holiday_data.Rd
Builds a dataframe of holiday dates between 2 dates in the form of 'yyyy-mm-dd'. Pass a dataframe with the column of dates.
Usage
holiday_data(df, out_df = c("weeks", "days"))
Arguments
- df
dataframe
A dataframe with 1 date column with at least 2 dates.- out_df
character
weeks
is the default, but can also usedays
.
Value
The result of the function can be either a dataframe with days between the minimum and maximum of the dates provided, or, the default option which is to return a dataframe with weeks instead of days.
The paramater out_df
gives the user 2 choices for output. The
default output a weeks dataframe with beginning week, ending week, a holiday
flag, and a column for the holiday name. The second option returns a
dataframe with all the days and day names with the 4 columns mention above.