getCalendar | R Documentation |
Define a calendar, with three different "seasons" (winter, summer and interseason) and two types of days (working days and weekends)
getCalendar(dates, interSeasonBegin, interSeasonEnd, dayExclude = NULL,
holiday = c("NewYearsDay", "GoodFriday", "EasterSunday",
"EasterMonday", "LaborDay", "FRAscension", "Pentecost",
"PentecostMonday", "FRAssumptionVirginMary", "FRAllSaints",
"FRArmisticeDay", "ChristmasEve", "ChristmasDay", "BoxingDay",
"DENewYearsEve"), dayInWeekend = c(6, 7))
dates |
|
interSeasonBegin |
|
interSeasonEnd |
|
dayExclude |
|
holiday |
|
dayInWeekend |
|
A list of vector of dates. The name of each element of the list is a so-called "class" (season x type of day, e.g. summerWd).
## Not run:
dates <- getSequence("2017-01-01", "2017-12-31")
interSeasonBegin <- c("2017-03-01", "2017-09-01")
interSeasonEnd <- c("2017-05-01", "2017-11-01")
dayExclude <- c("2017-06-15", "2017-06-16")
getCalendar(dates, interSeasonBegin, interSeasonEnd, dayExclude = dayExclude)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.