Learn R Programming

antaresEditObject (version 0.3.0)

editArea: Edit An Existing Area In An Antares Study

Description

Edit An Existing Area In An Antares Study

Usage

editArea(
  name,
  color = NULL,
  localization = NULL,
  nodalOptimization = NULL,
  filtering = NULL,
  opts = antaresRead::simOptions()
)

Value

An updated list containing various information about the simulation.

Arguments

name

Name of the area as a character, without punctuation except - and _.

color

Color of the node

localization

Localization on the map

nodalOptimization

Nodal optimization parameters, see nodalOptimizationOptions.

filtering

Filtering parameters, see filteringOptions.

opts

List of simulation parameters returned by the function antaresRead::setSimulationPath

Examples

Run this code
if (FALSE) {

library(antaresRead)

# Set simulation path
setSimulationPath(path = "PATH/TO/SIMULATION", simulation = "input")

# Edit an existing area
editArea("area", color = grDevices::rgb(230, 108, 44, max = 255),
  localization = c(1, 1),
  opts = antaresRead::simOptions()) 

editArea("de",  nodalOptimization = list("spilledenergycost" = list(fr = 30)),
opts = antaresRead::simOptions())

editArea("de",  nodalOptimization = nodalOptimizationOptions(),
opts = antaresRead::simOptions())

}

Run the code above in your browser using DataLab