Skip to content

Commit

Permalink
better naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Aug 5, 2024
1 parent 966a393 commit 3c57fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/derive_params_growth_age.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ derive_params_growth_age <- function(dataset,
bins <- get_bins(meta_criteria, param = "AGE")

# create a unified join naming convention, hard to figure out in by argument
dataset2 <- dataset %>%
relevant_records <- dataset %>%
filter(!!enexpr(parameter)) %>%
mutate(
sex_join := {{ sex }},
Expand Down Expand Up @@ -260,7 +260,7 @@ derive_params_growth_age <- function(dataset,
)

# Merge the dataset that contains the vs records and filter the L/M/S that fit the appropriate age
added_records <- dataset2 %>%
added_records <- relevant_records %>%
left_join(.,
processed_md,
by = c("sex_join", "ageu_join", "age_bins")
Expand Down
4 changes: 2 additions & 2 deletions R/derive_params_growth_height.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ derive_params_growth_height <- function(dataset,
bins <- get_bins(meta_criteria, param = "HEIGHT_LENGTH")

# create a unified join naming convention, hard to figure out in by argument
dataset2 <- dataset %>%
relevant_records <- dataset %>%
filter(!!enexpr(parameter)) %>%
mutate(
sex_join := {{ sex }},
Expand Down Expand Up @@ -247,7 +247,7 @@ derive_params_growth_height <- function(dataset,
)

# Merge the dataset that contains the vs records and filter the L/M/S that match height
added_records <- dataset2 %>%
added_records <- relevant_records %>%
left_join(.,
processed_md,
by = c("sex_join", "heightu_join", "ht_bins")
Expand Down

0 comments on commit 3c57fdb

Please sign in to comment.