Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #76 from RMI-PACTA/74-rm-superfluous-na-fill
Browse files Browse the repository at this point in the history
rm superfluous handling of NAs in abcd when PACTA is run
  • Loading branch information
jacobvjk authored Feb 29, 2024
2 parents c36a5f7 + 0716ce3 commit 9cf6318
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions run_aggregate_loanbooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ abcd <- readr::read_csv(
col_types = col_types_abcd,
col_select = dplyr::all_of(col_select_abcd)
)
# replace potential NA values with 0 in production
abcd["production"][is.na(abcd["production"])] <- 0

# optional: remove company-sector combinations where production in t5 = 0 when
# it was greater than 0 in t0.
Expand Down
2 changes: 0 additions & 2 deletions run_pacta_in_bulk.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ abcd <- readr::read_csv(
col_types = col_types_abcd,
col_select = dplyr::all_of(col_select_abcd)
)
# replace potential NA values with 0 in production
abcd["production"][is.na(abcd["production"])] <- 0

# optional: remove company-sector combinations where production in t5 = 0 when
# it was greater than 0 in t0.
Expand Down

0 comments on commit 9cf6318

Please sign in to comment.