Learn R Programming

antaresEditObject (version 0.9.0)

createArea: Create an area in an Antares study

Description

Antares API OK

Create a new area in an Antares study.

Usage

createArea(
  name,
  color = grDevices::rgb(230, 108, 44, max = 255),
  localization = c(0, 0),
  nodalOptimization = nodalOptimizationOptions(),
  filtering = filteringOptions(),
  adequacy = adequacyOptions(),
  overwrite = FALSE,
  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().

adequacy

Adequacy parameters, see adequacyOptions().

overwrite

Overwrite the area if already exist.

opts

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

See Also

editArea(), removeArea()

Examples

Run this code
if (FALSE) {

library(antaresRead)

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

# Create a new area
createArea("fictive_area")

}

Run the code above in your browser using DataLab