Skip to content

Commit

Permalink
Merge pull request #414 from PIP-Technical-Team/AFE_AFW_issue
Browse files Browse the repository at this point in the history
add md_year object to account for years of the missing data countries
  • Loading branch information
randrescastaneda authored Sep 16, 2024
2 parents 19e742e + 1027478 commit 9f20b30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/create_countries_vctr.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ create_countries_vctr <- function(country,
## Adjust year ----
if (any(c("ALL", "MRV") %in% toupper(year))) {
year <- valid_years$valid_survey_years
# year <- valid_years$valid_interpolated_years
md_year <- valid_years$valid_interpolated_years
} else {
md_year <- year
}
# STEP 2: Identify regions ----
## All available aggregates ----
Expand Down Expand Up @@ -108,7 +112,7 @@ create_countries_vctr <- function(country,
## Countries with missing data ----
md_vars <- get_md_vars(md = aux_files$missing_data,
ctr_alt_agg = ctr_alt_agg,
year = year,
year = md_year,
off_alt_agg = off_alt_agg,
user_off_reg = user_off_reg)
list2env(md_vars, envir = environment())
Expand Down
1 change: 1 addition & 0 deletions inst/TMP/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/TMP_data_testing.R
TMP_povline_vectorization.R

0 comments on commit 9f20b30

Please sign in to comment.