calendar.easter: Add Easter related day to a calendar

View source: R/calendars.R

calendar.easterR Documentation

Add Easter related day to a calendar

Description

Add Easter related day to a calendar

Usage

calendar.easter(
  calendar,
  offset,
  julian = FALSE,
  weight = 1,
  start = NULL,
  end = NULL
)

Arguments

calendar

The calendar.

offset

The position of the holiday in relation to the 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.

start, end

Validity period of the holiday in the format "YYYY-MM-DD".

Examples

calendar <- calendar.new()
calendar.easter(calendar, 1) # add Easter Monday
calendar.easter(calendar, -2) # add Easter Good Friday

palatej/rjd3modelling documentation built on Jan. 3, 2023, 10:19 p.m.