Description Usage Arguments Value
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.
1 2 | timeIdToDate(timeId, timeStep = c("hourly", "daily", "weekly", "monthly",
"annual"), opts)
|
timeId |
A numeric vector |
timeStep |
Character string indicating the time step of the parameter
|
opts |
Simulation options. It must at least contain elements |
A vector with same length as timeId
. If timeStep = "hourly"
, the result
is a POSIXct
vector, else it is a Date
vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.