Skip to content

Commit

Permalink
remove new country_or_psnu column in PEPFAR datapack
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffeaton committed Jan 3, 2025
1 parent ceac440 commit 18c4209
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# naomi 2.10.8

* Add national level aggregate to PEPFAR Target Setting Tool CSV.
- This also adds a new column `country_or_psnu` that codes values `"Country"` or `"PSNU"`
accordingly. If the PSNU level is national, the value `"Country"` will be coded.
* Remove two-year ahead projection (`*.T2`) indicators from PEPFAR Target Setting Tool output.

# naomi 2.10.7
Expand Down
6 changes: 1 addition & 5 deletions R/pepfar-datapack.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ build_datapack_output <- function(naomi_output, psnu_level, dmppt2_output) {
dat <- dplyr::left_join(dat, psnu_map, by = "area_id")
dat$psnu <- ifelse(is.na(dat$map_name), dat$area_name, dat$map_name)

## Recode area_level as "Country" or "PSNU"
dat$country_or_psnu <- ifelse(dat$area_level == 0, "Country", "PSNU")

dat %>%
dplyr::select(
psnu,
Expand All @@ -206,8 +203,7 @@ build_datapack_output <- function(naomi_output, psnu_level, dmppt2_output) {
calendar_quarter,
value,
age_sex_rse,
district_rse,
country_or_psnu
district_rse
)
}

Expand Down

0 comments on commit 18c4209

Please sign in to comment.