diff --git a/NEWS.md b/NEWS.md index 27031515..d72ab81c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/pepfar-datapack.R b/R/pepfar-datapack.R index 1aca73b5..55531073 100644 --- a/R/pepfar-datapack.R +++ b/R/pepfar-datapack.R @@ -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, @@ -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 ) }