cal_match() matches a date in
x to a holiday in
rcalendar and returns
the corresponding holiday name, or
NA if it doesn't exist in the calendar.
If a date corresponds to multiple holidays, the holiday that was added to the calendar first is returned.
This function is intended to be similar to
A date vector to match.
A calendar to look for holiday matches in.