Skip to content

Commit

Permalink
fix error in bool
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Mar 15, 2024
1 parent 8baf735 commit 5712510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/BuildModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ standardizeandcastSatelliteTable <- function(df, model, final_demand = FALSE) {
df_cast$Flow <- NULL
if(final_demand) {
codes <- model$FinalDemandMeta[model$FinalDemandMeta$Group%in%c("Household"), "Code_Loc"]
if(codes %in% colnames(df_cast)) {
if(any(codes %in% colnames(df_cast))) {
df_cast <- df_cast[, codes, drop=FALSE]
} else {
# no final demand emissions in any satellite table, no need for B_h
Expand Down

0 comments on commit 5712510

Please sign in to comment.