@@ -257,10 +257,10 @@ convertUsefromPURtoBAS <- function(UseSUT_PUR, specs, io_codes) {
257
257
# Load UsePRO and UsePUR under Make-Use framework
258
258
Redef <- ifelse(specs $ BasewithRedefinitions , " AfterRedef" , " BeforeRedef" )
259
259
schema <- getSchemaCode(specs )
260
- UsePUR <- get(paste(na.omit(c(specs $ BaseIOLevel , " Use" , specs $ IOYear , " PUR" , Redef , specs )), collapse = " _" ))
261
- UsePRO <- get(paste(na.omit(c(specs $ BaseIOLevel , " Use" , specs $ IOYear , " PRO" , Redef , specs )), collapse = " _" ))
260
+ UsePUR <- get(paste(na.omit(c(specs $ BaseIOLevel , " Use" , specs $ IOYear , " PUR" , Redef , schema )), collapse = " _" ))
261
+ UsePRO <- get(paste(na.omit(c(specs $ BaseIOLevel , " Use" , specs $ IOYear , " PRO" , Redef , schema )), collapse = " _" ))
262
262
# Load Supply table
263
- Supply <- get(paste(na.omit(c(specs $ BaseIOLevel , " Supply" , specs $ IOYear , specs )), collapse = " _" ))
263
+ Supply <- get(paste(na.omit(c(specs $ BaseIOLevel , " Supply" , specs $ IOYear , schema )), collapse = " _" ))
264
264
265
265
# Convert from PUR to PRO by removing margins obtained from Supply table
266
266
rows <- io_codes $ Commodities
0 commit comments