powered by
Enrich traffic data with french vacation and public holidays
enrich_special_days(data, vacations = NULL, public_holidays = NULL)
Same dataframe with two additionnal columns :
holiday, boolean: TRUE if the day corresponds to public holiday, FALSE otherwise
vacation, indicating the french vacation, "No vacation" otherwise.
Data frame containing a day and a date(day + hour + timezone) column
day
date
Data frame containing the vacation dates
Data frame containing the public holidays dates
df <- data.frame('day' = as.Date(c("2022-02-18","2022-01-01")), 'date' = c('2022-02-18 12:00:00 CET','2022-01-01 12:00:00 CET')) enrich_special_days(df)
Run the code above in your browser using DataLab