Learn R Programming

forecast (version 8.21.1)

easter: Easter holidays in each season

Description

Returns a vector of 0's and 1's or fractional results if Easter spans March and April in the observed time period. Easter is defined as the days from Good Friday to Easter Sunday inclusively, plus optionally Easter Monday if easter.mon=TRUE.

Usage

easter(x, easter.mon = FALSE)

Value

Time series

Arguments

x

Monthly or quarterly time series

easter.mon

If TRUE, the length of Easter holidays includes Easter Monday.

Author

Earo Wang

Details

Useful for adjusting calendar effects.

Examples

Run this code

easter(wineind, easter.mon = TRUE)

Run the code above in your browser using DataLab