Skip to content

Commit

Permalink
does this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Aug 23, 2024
1 parent 15972ab commit 4969902
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 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 <- pharmaversesdtm::dm_peds %>%
#' advs <- dm_peds %>%
#' select(USUBJID, BRTHDTC, SEX) %>%
#' right_join(., pharmaversesdtm::vs_peds, by = "USUBJID") %>%
#' right_join(., 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 <- pharmaversesdtm::dm_peds %>%
#' advs <- dm_peds %>%
#' select(USUBJID, BRTHDTC, SEX) %>%
#' right_join(., pharmaversesdtm::vs_peds, by = "USUBJID") %>%
#' right_join(., vs_peds, by = "USUBJID") %>%
#' mutate(
#' VSDT = ymd(VSDTC),
#' BRTHDT = ymd(BRTHDTC)
Expand All @@ -133,7 +133,7 @@
#' out_unit = "days"
#' )
#'
#' heights <- pharmaversesdtm::vs_peds %>%
#' heights <- 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 <- pharmaversesdtm::dm_peds
dm_peds <- dm_peds
ex <- ex

# Derivations ----
Expand Down
3 changes: 2 additions & 1 deletion inst/templates/ad_advs.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# who_wt_for_lgth_boys, who_wt_for_lgth_girls

library(admiral)
library(pharamversesdtm)
library(admiralpeds)
library(dplyr)
library(lubridate)
Expand Down Expand Up @@ -180,7 +181,7 @@ 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 <- pharmaversesdtm::vs_peds
vs_peds <- vs_peds
data("adsl_peds")

vs <- vs_peds
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.

1 change: 1 addition & 0 deletions vignettes/advs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Once the required packages have been loaded, the first step is preparing the met

```{r message=FALSE}
library(admiral)
library(pharmaversesdtm, warn.conflicts = FALSE)
library(admiralpeds)
library(dplyr, warn.conflicts = FALSE)
library(lubridate)
Expand Down

0 comments on commit 4969902

Please sign in to comment.