File: easter.Rd

package info (click to toggle)
r-cran-forecast 8.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,248 kB
  • sloc: cpp: 975; ansic: 648; sh: 13; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calendar.R
\name{easter}
\alias{easter}
\title{Easter holidays in each season}
\usage{
easter(x, easter.mon = FALSE)
}
\arguments{
\item{x}{Monthly or quarterly time series}

\item{easter.mon}{If TRUE, the length of Easter holidays includes Easter
Monday.}
}
\value{
Time series
}
\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
\code{easter.mon=TRUE}.
}
\details{
Useful for adjusting calendar effects.
}
\examples{

easter(wineind, easter.mon = TRUE)
}
\author{
Earo Wang
}
\keyword{ts}