timeIdToDate: Convert a time id to a date

Description Usage Arguments Value

View source: R/timeIdToDate.R

Description

This function can be used to convert times ids to dates. If time step is hourly, it returns a POSIXct vector, else it always returns a date object. For weekly, monthly and annual time step, it returns the first day of the week, month or year.

Usage

1
2
timeIdToDate(timeId, timeStep = c("hourly", "daily", "weekly", "monthly",
  "annual"), opts)

Arguments

timeId

A numeric vector

timeStep

Character string indicating the time step of the parameter timeId.

opts

Simulation options. It must at least contain elements start and and firstWeekday.

Value

A vector with same length as timeId. If timeStep = "hourly", the result is a POSIXct vector, else it is a Date vector.


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