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")
Run the code above in your browser using DataLab