# NOT RUN {
setSimulationPath()
areasH <- readAntares(select = "LOAD", synthesis = FALSE, mcYears = 1)
areasD <- readAntares(select = "LOAD", synthesis = FALSE, mcYears = 1, timeStep ="daily")
areasDAgg <- changeTimeStep(areasH, "daily")
all.equal(areasDAgg$LOAD, areasD$LOAD)
# Use different aggregation functions
mydata <- readAntares(select = c("LOAD", "MRG. PRICE"), timeStep = "monthly")
changeTimeStep(mydata, "annual", fun = c("sum", "mean"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab