Skip to content

Commit

Permalink
Update toolLoadmrdriversData.R
Browse files Browse the repository at this point in the history
  • Loading branch information
johannah-pik committed Oct 21, 2024
1 parent d33ea62 commit bfc4a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/toolLoadmrdriversData.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ toolLoadmrdriversData <- function(SSPscen, helpers) {
years <- unique(helpers$dtTimeRes$period)

GDPMERmag <- calcOutput("GDP", aggregate = TRUE, regionmapping = "regionmapping_21_EU11.csv",
unit = "constant 2005 US$MER")[, , paste0("gdp_", SSPscen)]|> time_interpolate(years)
unit = "constant 2017 US$MER")[, , paste0("gdp_", SSPscen)]|> time_interpolate(years)
GDPMER <- magpie2dt(GDPMERmag, yearcol = "period", regioncol = "region")[, variable := NULL]
GDPpcMERmag <- calcOutput("GDPpc", aggregate = TRUE, regionmapping = "regionmapping_21_EU11.csv",
unit = "constant 2005 US$MER")[, , paste0("gdppc_", SSPscen)]|> time_interpolate(years)
unit = "constant 2017 US$MER")[, , paste0("gdppc_", SSPscen)]|> time_interpolate(years)
GDPpcMER <- magpie2dt(GDPpcMERmag, yearcol = "period", regioncol = "region")[, variable := NULL]

GDPpppMag <- calcOutput("GDP", aggregate = TRUE, regionmapping = "regionmapping_21_EU11.csv")
Expand Down

0 comments on commit bfc4a6e

Please sign in to comment.