holiday.nearest.weekday | R Documentation |
Moves calculated holiday dates (or any dates) to the nearest weekday, if they are on weekends.
holiday.nearest.weekday(dates.)
dates. |
the dates to move to the nearest weekday. Must be a |
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.
holiday.fixed
, holidays
.
holiday.nearest.weekday(holiday.Christmas(1994:2005))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.