Skip to content

Commit 33bb485

Browse files
author
WesIngwersen
committed
fix #343. simply replace specs in name with schema
1 parent b042a75 commit 33bb485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/IOFunctions.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ convertUsefromPURtoBAS <- function(UseSUT_PUR, specs, io_codes) {
257257
# Load UsePRO and UsePUR under Make-Use framework
258258
Redef <- ifelse(specs$BasewithRedefinitions, "AfterRedef", "BeforeRedef")
259259
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 = "_"))
262262
# 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 = "_"))
264264

265265
# Convert from PUR to PRO by removing margins obtained from Supply table
266266
rows <- io_codes$Commodities

0 commit comments

Comments
 (0)