cal_names()
returns the names of the holidays in a calendar.
cal_names(x)
A character vector of holiday names.
[rcalendar]
An rcalendar.
x <- rcalendar(hol_christmas(), hol_new_years_day())
cal_names(x)
Run the code above in your browser using DataLab