Skip to content

Commit 4f5ec91

Browse files
committed
update column name in getMarginsTable()
1 parent 63fc74b commit 4f5ec91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/LoadMargins.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ getMarginsTable <- function (model) {
1717
# Change in inventory has negative margins for positive change, which does not accurately portray actual margins either.
1818
purchaser_removal <- sapply(list("Export", "Import", "ChangeInventories"), getVectorOfCodes,
1919
ioschema = model$specs$BaseIOSchema, iolevel = "Detail")
20-
MarginsTable <- MarginsTable[!MarginsTable$NIPACode%in%purchaser_removal,]
20+
MarginsTable <- MarginsTable[!MarginsTable$IndustryCode%in%purchaser_removal,]
2121
# Remove Scrap, Used and secondhand goods, and Non-comparable imports, and Rest of world adjustment commodities
2222
commodity_removal <- sapply(list("Scrap", "UsedGoods", "NonComparableImport", "RoWAdjustment"), getVectorOfCodes,
2323
ioschema = model$specs$BaseIOSchema, iolevel = model$specs$BaseIOLevel)

0 commit comments

Comments
 (0)