calendar.easter | R Documentation |
Add Easter related day to a calendar
calendar.easter( calendar, offset, julian = FALSE, weight = 1, start = NULL, end = NULL )
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 |
calendar <- calendar.new() calendar.easter(calendar, 1) # add Easter Monday calendar.easter(calendar, -2) # add Easter Good Friday
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.