calendar: Create timetable of time-slices from given structure as a...

make_timetableR Documentation

Create timetable of time-slices from given structure as a list

Description

Create timetable of time-slices from given structure as a list

Usage

make_timetable(
  struct = list(ANNUAL = "ANNUAL"),
  year_fraction = 1,
  warn = FALSE
)

Arguments

struct

named list of timeframes with sets of timeslices and optional shares of every slice or frame in the nest

warn

logical, if TRUE, warning will be issued if ANNUAL level does not exists in the given structure. The level will be auto-created to complete the time-structure.

Value

an data.frame with the specified structure.

Examples

make_timetable()
make_timetable(list("SEASON" = c("WINTER", "SUMMER")))
make_timetable(list("SEASON" = c("WINTER" = .6, "SUMMER" = .4)))
make_timetable(list(
  "SEASON" = list(
    "WINTER" = list(.3, DAY = c("MORNING", "EVENING")),
    "SUMMER" = list(.7, DAY = c("MORNING", "EVENING"))
  )
))

make_timetable(list(
  "SEASON" = list("WINTER" = .3, "SUMMER" = .7),
  "DAY" = c("MORNING", "EVENING")
))


olugovoy/energyRt documentation built on Nov. 21, 2024, 2:24 a.m.