Skip to contents

Allows to display the date of Easter Sunday for each year, in the defined period. Dates are displayed in "YYYY-MM-DD" format and as a number of days since January 1st 1970.

Usage

easter_dates(year0, year1, julian = FALSE)

Arguments

year0, year1

starting year and ending year

julian

Boolean indicating if Julian calendar must be used.

Value

a named numeric vector. Names are the dates in format "YYYY-MM-DD", values are number of days since January 1st 1970.

References

More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction

Examples

#Dates from 2018(included) to 2023 (included)
easter_dates(2018, 2023)
#> 2018-04-01 2019-04-21 2020-04-12 2021-04-04 2022-04-17 2023-04-09 
#>      17622      18007      18364      18721      19099      19456