Skip to content

Commit

Permalink
chore: use new join_keys api
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 17, 2023
1 parent 160f8da commit 2c8d94c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exploratory/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ datanames <- c("ADSL", "ADRS", "ADLB", "ADLBPCA")
datanames(data) <- datanames

join_keys(data) <- default_cdisc_join_keys[datanames]
join_keys(data)[["ADLBPCA"]][["ADLBPCA"]] <- c("USUBJID", "STUDYID", "PARAMCD", "AVISIT")
join_keys(data)[["ADLBPCA"]][["ADSL"]] <- c("USUBJID", "STUDYID")
join_keys(data)["ADLBPCA", "ADLBPCA"] <- c("USUBJID", "STUDYID", "PARAMCD", "AVISIT")
join_keys(data)["ADLBPCA", "ADSL"] <- c("USUBJID", "STUDYID")
parents(data) <- c(parents(data), list(ADLBPCA = "ADSL"))

## Reusable Configuration For Modules
ADSL <- data[["ADSL"]]
Expand Down

0 comments on commit 2c8d94c

Please sign in to comment.