Learn R Programming

datarobot (version 2.18.6)

CreateCalendar: Create a calendar from an uploaded CSV.

Description

Create a calendar from an uploaded CSV.

Usage

CreateCalendar(
  dataSource,
  name = NULL,
  multiSeriesIdColumn = NULL,
  maxWait = 600
)

Value

An S3 object of class "dataRobotCalendar"

Arguments

dataSource

object. Either (a) the name of a CSV file, or (b) a dataframe. This parameter identifies the source of the calendar data.

name

character. Optional. The name of the calendar.

multiSeriesIdColumn

character. Optional. Added in 2.19. The column in the calendar that defines which series an event belongs to. Only one column is supported.

maxWait

integer. The maximum time (in seconds) to wait for the retrieve to complete.

Examples

Run this code
if (FALSE) {
   CreateCalendar("inst/extdata/calendar.csv", name = "intlHolidayCalendar")
}
if (FALSE) {
   holidayCalendarDF <- as.data.frame(myCalendar)
   CreateCalendar(holidayCalendarDF, name = "intlHolidayCalendar")
}
if (FALSE) {
   CreateCalendar("inst/extdata/calendar.csv",
                  name = "intlHolidayCalendar",
                  multiSeriesIdColumn = "Country")
}

Run the code above in your browser using DataLab