Skip to content

Commit

Permalink
#32 Drop MEASURE variable from the metadata and keep HEIGHT_LENGTH an…
Browse files Browse the repository at this point in the history
…d HEIGHT_LENGTHU in both who_wt_for_lgth and who_wt_for_ht metadata
  • Loading branch information
Fanny-Gautier committed Jun 10, 2024
1 parent 7475486 commit 70eecab
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions inst/templates/ad_advs.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,9 @@ who_wt_for_lgth <- who_wt_for_lgth_boys %>%
mutate(SEX = "M") %>%
bind_rows(who_wt_for_lgth_girls %>%
mutate(SEX = "F")) %>%
mutate(
MEASURE = "LENGTH",
LENGTHU = "cm"
mutate(HEIGHT_LENGTHU = "cm"
) %>%
rename(LENGTH = Length)
rename(HEIGHT_LENGTH = Length)

## WHO - WEIGHT for LENGTH/HEIGHT ----
data(who_wt_for_ht_boys)
Expand All @@ -138,11 +136,9 @@ who_wt_for_ht <- who_wt_for_ht_boys %>%
mutate(SEX = "M") %>%
bind_rows(who_wt_for_ht_girls %>%
mutate(SEX = "F")) %>%
mutate(
MEASURE = "HEIGHT",
HEIGHTU = "cm"
mutate(HEIGHT_LENGTHU = "cm"
) %>%
rename(HEIGHT = Height)
rename(HEIGHT_LENGTH = Height)

# Load source datasets ----

Expand Down

0 comments on commit 70eecab

Please sign in to comment.