holnrwkd: Holiday Generating Functions

holiday.nearest.weekdayR Documentation

Holiday Generating Functions

Description

Moves calculated holiday dates (or any dates) to the nearest weekday, if they are on weekends.

Usage

holiday.nearest.weekday(dates.)

Arguments

dates.

the dates to move to the nearest weekday. Must be a timeDate object.

Value

returns a vector of dates that is the same as the input vector wherever its dates lie on weekdays, and which has Sundays moved to Monday, and Saturdays moved to Friday for weekend dates.

See Also

holiday.fixed, holidays.

Examples

holiday.nearest.weekday(holiday.Christmas(1994:2005)) 

splusTimeDate documentation built on July 7, 2022, 5:05 p.m.