Filter holidays by category
Arguments
- data
a
data.framewith at least the following column:type, the category of the holiday. Typically, the output ofget_holidays().- types
a
characterwith the types of holidays to keep. Seeget_holiday_types().
Examples
if (FALSE) {
## Get holidays for United Kingdom in 2024 ----
holidays <- get_holidays(country = "UK", year = 2024, month = 4)
## Get types of holidays ----
get_holiday_types(holidays)
## Filter holidays ----
filter_holidays(holidays, types = "Common Local Holiday")
}
