Skip to content

Commit

Permalink
#32: Updates for styler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lina2689 committed Jun 17, 2024
1 parent a8aaaec commit 926d39a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions inst/templates/ad_advs.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,11 @@ data(who_wt_for_lgth_boys)
data(who_wt_for_lgth_girls)

who_wt_for_lgth <- who_wt_for_lgth_boys %>%
mutate(SEX = "M") %>%
bind_rows(who_wt_for_lgth_girls %>%
mutate(SEX = "F")) %>%
mutate(HEIGHT_LENGTHU = "cm"
) %>%
rename(HEIGHT_LENGTH = Length)
mutate(SEX = "M") %>%
bind_rows(who_wt_for_lgth_girls %>%
mutate(SEX = "F")) %>%
mutate(HEIGHT_LENGTHU = "cm") %>%
rename(HEIGHT_LENGTH = Length)

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

# Load source datasets ----
Expand Down Expand Up @@ -292,6 +290,7 @@ advs_age <- advs %>%
meta_criteria = bmi_for_age,
parameter = VSTESTCD == "BMI",
analysis_var = AVAL,
# bmi_cdc_correction = TRUE,
set_values_to_sds = exprs(
PARAMCD = "BMISDS",
PARAM = "BMI-for-age z-score"
Expand Down

0 comments on commit 926d39a

Please sign in to comment.