View source: R/writeEconomicOptions.R
writeEconomicOptions | R Documentation |
This function allows to create or edit economic options. Areas/options present in the input dataframe are edited, while all other values are left unchanged.
writeEconomicOptions(x, opts = antaresRead::simOptions())
x |
A dataframe. Must contain an |
opts |
List of simulation parameters returned by the function
|
## Not run:
library(antaresRead)
# Set simulation path
setSimulationPath(path = "PATH/TO/SIMULATION", simulation = "input")
# Write some economic options for areas a, b and c
writeEconomicOptions(data.frame(
area = c("a", "b", "c"),
dispatchable_hydro_power = c(TRUE, FALSE, FALSE),
spread_unsupplied_energy_cost = c(0.03, 0.024, 0.01),
average_spilled_energy_cost = c(10, 8, 8),
stringsAsFactors = FALSE
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.