Description Usage Arguments Examples
View source: R/addNetPosition.R
This function calculates the Net Position (the balance) of areas within a bigger group of areas, based on the exchanged flows in the indicated perimeter. By default, the function calculates the Net Position within the CWE area and creates a new column called Balance_CWE.
1 2 | addNetPosition(data, opts = antaresRead::simOptions(), inAreas = c("be",
"de", "fr", "nl"), adq = FALSE, newName = "_CWE")
|
data |
|
opts |
|
inAreas |
|
adq |
|
newName |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
opts <- antaresRead::setSimulationPath("D:/Users/titorobe/Desktop/antaresStudy", 2)
data <- readAntares(area = "all", links = "all", mcYears = 1)
##Add the net positions in the CWE area
data <- addNetPosition(data, opts, adq = FALSE)
##Add the net positions in an area containing CWE+AT
data <- addNetPosition(data, opts, adq = FALSE,
inAreas = c("be", "de", "fr", "nl", "at"), newName = "_CWEAt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.