enrich_special_days | R Documentation |
Enrich traffic data with french vacation and public holidays
enrich_special_days(data, vacations = NULL, public_holidays = NULL)
data |
Data frame containing a |
vacations |
Data frame containing the vacation dates |
public_holidays |
Data frame containing the public holidays dates |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.