format_da_prices: Make a day ahead price list

Description Usage Arguments Details Value See Also Examples

View source: R/format_da_prices.R

Description

Reformats a vector of price data into a day ahead format that is compatible with optimise_schedule.

Usage

1

Arguments

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.

Details

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.

Value

a list

See Also

optimise_schedule

Examples

1
2
some_prices <- rnorm(48, 20, 3)
format_da_prices(some_prices)

henobe/flexoptr documentation built on March 11, 2021, 6:04 p.m.