Skip to content

Commit b140619

Browse files
author
WesIngwersen
committed
fix generateDomesticUse for BAS models
1 parent 33bb485 commit b140619

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/IOFunctions.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ generateDomesticUse <- function(Use, Import, model) {
199199
# needs to be subtracted from the original Import matrix
200200
if (model$specs$BasePriceType == "BAS") {
201201
# Find "MDTY - import duties" in Supply table
202+
schema <- getSchemaCode(model$specs)
202203
Supply <- get(paste(na.omit(c(model$specs$BaseIOLevel, "Supply", model$specs$IOYear, schema)),
203204
collapse = "_")) * 1E6
204205
ImportDuty <- Supply[rownames(Import), "MDTY"]

0 commit comments

Comments
 (0)