addExportAndImport: Export and import of areas or districts

Description Usage Arguments Value Examples

View source: R/addExportAndImport.R

Description

This function computes the export and import of areas or districts and add it to an antaresData object.

Usage

1
addExportAndImport(x, addCapacities = FALSE, opts = NULL)

Arguments

x

an object of class "antaresDataList" created with the function readAntares. It has to contain some areas and all the links that are connected to these areas. Moreover the function removeVirtualAreas must be call before.

addCapacities

If TRUE, export and import capacities are added.

opts

opts

Value

addExportAndImport modifies its input by adding to it columns:

export

export for an area or district

import

import for an area or district

capExport

capacity of export for an area or district, if addCapacities is set to TRUE

capImport

capacity of import for an area or district, if addCapacities is set to TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Data required by the function
showAliases("exportsImports")

mydata <- readAntares(select = "exportsImports")
addExportAndImport(mydata)
names(mydata$areas)


## End(Not run)

antaresProcessing documentation built on Nov. 7, 2021, 1:06 a.m.