Roll Date to Holiday

next_holiday(date = today(), shift = 1L, region = get_region(), len = 1L)

prev_holiday(date = today(), shift = -1, region = get_region(), len = 1)

Arguments

date

Date vector

shift

integer 0 to include the date itself and 7 to jump a week (defaul is 1 not to include the given dates)

region

character one of calendars

len

integer Number of holidays days to retrieve

Value

Datevector