if (FALSE) {
# Data required by the function:
showAliases("surplusClusters")
mydata <- readAntares(select = "surplusClusters")
surplusClusters(mydata)
# Computing the surplus of the last unit of a cluster requires the additional
# column "availableUnits". To add this column, one has to use parameter
# "thermalAvailabilities = TRUE" in readAntares.
mydata <- readAntares(select = c("surplusClusters", "thermalAvailabilities"))
surplusClusters(mydata, surplusLastUnit = TRUE)
}
Run the code above in your browser using DataLab