| write_calendars | R Documentation |
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
write_calendars(calendars, file)
calendars |
list of calendars or a |
file |
xml format |
NULL returned invisibly
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")
))
calendar_path <- tempfile(pattern = "calendar", fileext = ".xml")
write_calendars(BE, file = calendar_path)
write_calendars(list(BEL_cal = BE), file = calendar_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.