Skip to content

Commit

Permalink
use make table for commodity output consistent with approach in build…
Browse files Browse the repository at this point in the history
…StateSupplyModel()
  • Loading branch information
bl-young committed Feb 7, 2024
1 parent d3d219f commit e1ed152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/StateDisaggFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ calculateStateIndustryCommodityOuput <- function(model){
rownames(model$IndustryOutput) <- rowLabels

# Calculating and formatting CommodityOuput
model$CommodityOutput <- data.frame(rowSums(model$UseTransactions) + rowSums(model$FinalDemand))
model$CommodityOutput <- data.frame(colSums(model$MakeTransactions))
colnames(model$CommodityOutput) <- "Output"
rowLabels <- rownames(model$CommodityOutput)
rowLabels <- gsub("\\/.*","",rowLabels) # remove everything after "/"
Expand Down

0 comments on commit e1ed152

Please sign in to comment.