Skip to contents

The calendar file is a xml file like the one JDemetra+ would write when defining a calendar in the Graphical User Interface. Calendars can be defined with rjd3toolkit::national_calendar

Usage

write_calendars(calendars, file)

Arguments

file

xml format

list

of calendars

Value

NULL returned invisibly

Examples

library(rjd3toolkit)
BE <- national_calendar(list(
   fixed_day(7, 21),
   special_day("NEWYEAR"),
   special_day("CHRISTMAS"),
   special_day("MAYDAY"),
   special_day("EASTERMONDAY"),
   special_day("ASCENSION"),
   special_day("WHITMONDAY"),
   special_day("ASSUMPTION"),
   special_day("ALLSAINTSDAY"),
   special_day("ARMISTICE")
))
write_calendars(list(BEL_cal = BE),
        file = normalizePath("~/tmp.xml", mustWork = FALSE))