Description Usage Arguments Details Value See Also Examples
View source: R/format_da_prices.R
Reformats a vector of price data into a day ahead format that is compatible
with optimise_schedule
.
1 | format_da_prices(prices)
|
prices |
a numerical vector of prices. Length must be a multiple of 24. Days with a change in daylight saving time can therefore not be handled. |
Data is grouped into groups of 24 and put into a list, the first element containing the first 24 prices, the next 23 elements being empty, the 25th element containing the next prices and so on.
a list
1 2 | some_prices <- rnorm(48, 20, 3)
format_da_prices(some_prices)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.