is_holiday | R Documentation |
Identifies if a given date is a public holiday in Australia
is_holiday(date, jurisdictions = c())
date |
Date, POSIXct object or a string that can be parsed with 'parsedate::parse_date' |
jurisdictions |
Vector of state jurisdictions you wish to filter on, defaults to all of Australia |
logical('TRUE' or 'FALSE') vector
is_holiday('2020-01-01')
is_holiday('2019-05-27', jurisdictions=c('ACT', 'TAS'))
h_df <- data.frame(dates = c('2020-01-01', '2020-01-10'))
h_df %>%
dplyr::mutate(IsHoliday = is_holiday(dates))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.