View source: R/join_adsub_adsl.R
join_adsub_adsl | R Documentation |
adsub
to adsl
Join adsub
to adsl
join_adsub_adsl(
adam_db,
keys,
continuous_var,
categorical_var,
continuous_suffix,
categorical_suffix,
drop_na = TRUE,
drop_lvl = TRUE
)
## S3 method for class 'list'
join_adsub_adsl(
adam_db,
keys = c("USUBJID", "STUDYID"),
continuous_var = "all",
categorical_var = "all",
continuous_suffix = "",
categorical_suffix = "_CAT",
drop_na = TRUE,
drop_lvl = FALSE
)
adam_db |
( |
keys |
( |
continuous_var |
( |
categorical_var |
( |
continuous_suffix |
( |
categorical_suffix |
( |
drop_na |
( |
drop_lvl |
( |
a list
of data.frame
with new columns in the adsl
table.
adsl <- data.frame(
USUBJID = c("S1", "S2", "S3", "S4"),
STUDYID = "My_study",
AGE = c(60, 44, 23, 31)
)
adsub <- data.frame(
USUBJID = c("S1", "S2", "S3", "S4", "S1", "S2", "S3"),
STUDYID = "My_study",
PARAM = c("weight", "weight", "weight", "weight", "height", "height", "height"),
PARAMCD = c("w", "w", "w", "w", "h", "h", "h"),
AVAL = c(98, 75, 70, 71, 182, 155, 152),
AVALC = c(">80", "<=80", "<=80", "<=80", ">180", "<=180", "<=180")
)
db <- list(adsl = adsl, adsub = adsub)
x <- join_adsub_adsl(adam_db = db)
x <- join_adsub_adsl(adam_db = db, continuous_var = c("w", "h"), categorical_var = "h")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.