chained_calendar: Create a Chained Calendar

View source: R/calendars.R

chained_calendarR Documentation

Create a Chained Calendar

Description

Allows to combine two calendars, one before and one after a given date.

Usage

chained_calendar(calendar1, calendar2, break_date)

Arguments

calendar1, calendar2

calendars to chain.

break_date

the break date in the format "YYYY-MM-DD".

Details

A chained calendar is an useful option when major changes in the composition of the holidays take place. In such a case two calendars describing the situation before and after the change of regime can be defined and bound together, one before the break and one after the break.

Value

returns an object of class c("JD3_CHAINEDCALENDAR","JD3_CALENDARDEFINITION")

References

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

See Also

national_calendar, weighted_calendar

Examples

Belgium <- national_calendar(list(special_day("NEWYEAR"), fixed_day(7, 21)))
France <- national_calendar(list(special_day("NEWYEAR"), fixed_day(7, 14)))
chained_cal <- chained_calendar(France, Belgium, "2000-01-01")


palatej/rjd3toolkit documentation built on Oct. 30, 2024, 10:46 p.m.