easter_day: Set a Holiday on an Easter related day

View source: R/calendars.R

easter_dayR Documentation

Set a Holiday on an Easter related day

Description

Allows to define a holiday which date is related to Easter Sunday.

Usage

easter_day(offset, julian = FALSE, weight = 1, validity = NULL)

Arguments

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 NULL (full sample) or a named list with "start" and/or "end" dates in the format "YYYY-MM-DD".

References

More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction

See Also

national_calendar, fixed_day,special_day,fixed_week_day

Examples

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")
)

palatej/rjd3toolkit documentation built on Oct. 30, 2024, 10:46 p.m.