Skip to content

Commit

Permalink
use :: convention
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Sep 10, 2024
1 parent fc90f51 commit a456a5b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 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 @@ -118,9 +118,9 @@
#' library(admiral, warn.conflicts = FALSE)
#' library(pharmaversesdtm, warn.conflicts = FALSE)
#'
#' advs <- dm_peds %>%
#' advs <- pharmaversesdtm::dm_peds %>%
#' select(USUBJID, BRTHDTC, SEX) %>%
#' right_join(., vs_peds, by = "USUBJID") %>%
#' right_join(., pharmaversesdtm::vs_peds, by = "USUBJID") %>%
#' mutate(
#' VSDT = ymd(VSDTC),
#' BRTHDT = ymd(BRTHDTC)
Expand Down
6 changes: 3 additions & 3 deletions R/derive_params_growth_height.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
#'
#' # derive weight for height/length only for those under 2 years old using WHO
#' # weight for length reference file
#' advs <- dm_peds %>%
#' advs <- pharmaversesdtm::dm_peds %>%
#' select(USUBJID, BRTHDTC, SEX) %>%
#' right_join(., vs_peds, by = "USUBJID") %>%
#' right_join(., pharmaversesdtm::vs_peds, by = "USUBJID") %>%
#' mutate(
#' VSDT = ymd(VSDTC),
#' BRTHDT = ymd(BRTHDTC)
Expand All @@ -133,7 +133,7 @@
#' out_unit = "days"
#' )
#'
#' heights <- vs_peds %>%
#' heights <- pharmaverse::vs_peds %>%
#' filter(VSTESTCD == "HEIGHT") %>%
#' select(USUBJID, VSSTRESN, VSSTRESU, VSDTC) %>%
#' rename(
Expand Down
2 changes: 1 addition & 1 deletion data-raw/adsl_peds.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ library(stringr)
# Create a basic ADSL for pediatrics ----

# Read in input data ----
dm_peds <- dm_peds
dm_peds <- pharmaversesdtm::dm_peds
ex <- ex

# Derivations ----
Expand Down
4 changes: 2 additions & 2 deletions inst/templates/ad_advs.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ who_wt_for_lgth <- who_wt_for_lgth_boys %>%
# as needed and assign to the variables below.
# For illustration purposes read in admiral test data

vs_peds <- vs_peds
data("adsl_peds")
vs_peds <- pharmaversesdtm::vs_peds
adsl_peds <- admiralpeds::adsl_peds

vs <- vs_peds
adsl <- adsl_peds %>% select(-DOMAIN)
Expand Down
4 changes: 2 additions & 2 deletions man/derive_params_growth_age.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/derive_params_growth_height.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vignettes/advs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ include the pediatrics-specific parameters as needed - for example:
| BMIPCTL | BMI-for-age percentile | 10 | Subject Characteristic | 1 |

```{r echo=FALSE, message=FALSE}
vs_peds <- vs_peds
data("adsl_peds")
vs_peds <- pharmaversesdtm::vs_peds
adsl_peds <- admiralpeds::adsl_peds
vs <- convert_blanks_to_na(vs_peds)
adsl <- adsl_peds %>% select(-DOMAIN)
Expand Down

0 comments on commit a456a5b

Please sign in to comment.