cal_names() returns the names of the holidays in a calendar.
cal_names()
cal_names(x)
x
[rcalendar]
An rcalendar.
A character vector of holiday names.
x <- rcalendar(hol_christmas(), hol_new_years_day()) cal_names(x)