convertTimeId: Convert an hourly timeId at a given time step

Description Usage Arguments Value Examples

View source: R/convertTimeId.R

Description

This function converts a vector of hourly time ids in time ids in another time step.

Usage

1
convertTimeId(hourId, timeStep, opts)

Arguments

hourId

A numeric vector containing hourly time ids.

timeStep

timeStep of the result.

opts

Simulation options. It must contain elements start (first date time of the study) and firstWeekday

Value

A numeric vector with same length as hourId reprensenting the corresponding time ids at the required time step.

Examples

1
2
3
4
5
6
7
8
opts <- list(
  start = as.POSIXlt("2017-01-01", tz = "UTC"),
  firstWeekday = "Monday"
)

hourId <- 1:(24*14)
table(convertTimeId(hourId, "daily", opts))
table(convertTimeId(hourId, "weekly", opts))

rte-antares-rpackage/antaresDev documentation built on May 17, 2019, 5:53 p.m.