easter_day | R Documentation |
Allows to define a holiday which date is related to Easter Sunday.
easter_day(offset, julian = FALSE, weight = 1, validity = NULL)
offset |
The position of the holiday in relation to Easter Sunday, measured in days (can be positive or negative). |
julian |
Boolean indicating if Julian calendar must be used. |
weight |
weight associated to the holiday. |
validity |
validity period: either |
More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction
national_calendar
, fixed_day
,special_day
,fixed_week_day
easter_day(1) # Easter Monday
easter_day(-2) # Easter Good Friday
# Corpus Christi 60 days after Easter
# Sunday in Julian calendar with weight 0.5, from January 2000 to December 2020
easter_day(
offset = 60, julian = TRUE, weight = 0.5,
validity = list(start = "2000-01-01", end = "2020-12-01")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.