readAntaresAreas | R Documentation |
This a function is a wrapper for "antaresData" that reads all data for a list of areas.
readAntaresAreas(
areas,
links = TRUE,
clusters = TRUE,
clustersRes = TRUE,
internalOnly = FALSE,
opts = simOptions(),
...
)
areas |
Vector containing area names. It represents the set of areas we are interested
in. If |
links |
should links connected to the areas be imported ? |
clusters |
should the thermal clusters of the areas be imported ? |
clustersRes |
should the renewable clusters of the areas be imported ? |
internalOnly |
If |
opts |
list of simulation parameters returned by the function
|
... |
Other arguments passed to the function |
If simplify = TRUE
and only one type of output is imported
then the result is a data.table.
Else an object of class "antaresData" is returned. It is a list of data.tables, each element representing one type of element (areas, links, clusters)
## Not run:
myarea <- simOptions()$areaList[1]
data <- readAntaresAreas(myarea)
# Equivalent but more concise than:
data2 <- readAntares(myarea, links = getLinks(myarea), clusters = myarea)
all.equal(data, data2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.