Description Usage Arguments Value Examples
View source: R/convertTimeId.R
This function converts a vector of hourly time ids in time ids in another time step.
1 | convertTimeId(hourId, timeStep, opts)
|
hourId |
A numeric vector containing hourly time ids. |
timeStep |
timeStep of the result. |
opts |
Simulation options. It must contain elements |
A numeric vector with same length as hourId
reprensenting the
corresponding time ids at the required time step.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.