easter

0th

Percentile

Easter holidays in each season

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.

Keywords
ts
Usage
easter(x, easter.mon = FALSE)
Arguments
x

Monthly or quarterly time series

easter.mon

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

Details

Useful for adjusting calendar effects.

Value

Time series

Aliases
  • easter
Examples
# NOT RUN {
  easter(wineind, easter.mon = TRUE)

# }
Documentation reproduced from package forecast, version 8.3, License: GPL-3

Community examples

Looks like there are no examples yet.