# NOT RUN {
# Import areas and links separately
areas <- readAntares() # equivalent to readAntares(areas="all")
links <- readAntares(links="all")
# Import areas and links at same time
output <- readAntares(areas = "all", links = "all")
# Add input time series to the object returned by the function
areas <- readAntares(areas = "all", misc = TRUE, reserve = TRUE)
# Get all output for one area
myArea <- sample(simOptions()$areaList, 1)
myArea
myAreaOutput <- readAntares(area = myArea,
links = getLinks(myArea, regexpSelect=FALSE),
clusters = myArea)
# Or equivalently:
myAreaOutput <- readAntaresAreas(myArea)
# Use parameter "select" to read only some columns.
areas <- readAntares(select = c("LOAD", "OV. COST"))
# Aliases can be used to select frequent groups of columns. use showAliases()
# to view a list of available aliases
areas <- readAntares(select="economy")
# }
Run the code above in your browser using DataLab