Description Usage Arguments Value Examples
View source: R/hldy-christmas.R
hldy_christmas() is a holiday for Christmas, December 25th.
1 2 3 4 5 6 | hldy_christmas(
since = "1900-01-01",
until = "2100-01-01",
adjust_on = NULL,
adjustment = NULL
)
|
since |
The lower bound on where to begin looking for the holiday. |
until |
The upper bound on where to end looking for the holiday. |
adjust_on |
If Otherwise, an rschedule that defines when an adjustment should be made.
For example, set to an rschedule for "on weekends", and
supply an |
adjustment |
If Otherwise, an adjustment function to apply to problematic dates. Typically
one of the pre-existing adjustment functions, like
|
A rholiday.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(almanac)
alma_search("1990-01-01", "1995-01-01", hldy_christmas())
# Adjust weekend Christmas to nearest weekday
adjust_on <- weekly() %>%
recur_on_weekends()
christmas_adjusted <- hldy_christmas(
adjust_on = adjust_on,
adjustment = adj_nearest
)
alma_search("1990-01-01", "1995-01-01", christmas_adjusted)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.