Skip to content
Snippets Groups Projects
Commit 965ab4c3 authored by Thomas  OBADIA's avatar Thomas OBADIA
Browse files

Fix an issue where the population inventory would mistakenly drop individuals...

Fix an issue where the population inventory would mistakenly drop individuals when one of their demographics (age OR gender) was missing instead of when both are missing concomitantly.
parent 20df7318
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ inventory_list_p <- dat_inventory_raw %>%
country %in% c("E", "Ethiopia") & agey > 24 ~ "y24_inf")) %>%
# Discard rows for whom no data was filled, i.e. empty placeholders in REDCap
filter(!is.na(sex) & !is.na(agey)) %>%
filter(!is.na(sex) | !is.na(agey)) %>%
# Retain only columns of interest for derived data (list of everyone in inventory)
select(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment