Create a calendar from an uploaded CSV.
CreateCalendar(
dataSource,
name = NULL,
multiSeriesIdColumn = NULL,
maxWait = 600
)
object. Either (a) the name of a CSV file, or (b) a dataframe. This parameter identifies the source of the calendar data.
character. Optional. The name of the calendar.
character. Optional. Added in 2.19. The column in the calendar that defines which series an event belongs to. Only one column is supported.
integer. The maximum time (in seconds) to wait for the retrieve to complete.
An S3 object of class "dataRobotCalendar"
# NOT RUN {
CreateCalendar("inst/extdata/calendar.csv", name = "intlHolidayCalendar")
# }
# NOT RUN {
holidayCalendarDF <- as.data.frame(myCalendar)
CreateCalendar(holidayCalendarDF, name = "intlHolidayCalendar")
# }
# NOT RUN {
CreateCalendar("inst/extdata/calendar.csv",
name = "intlHolidayCalendar",
multiSeriesIdColumn = "Country")
# }
Run the code above in your browser using DataLab