Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Example App** ``` data <- teal_data() data <- within(data, { ADSL <- tmc_ex_adsl lbls_adae <- formatters::var_labels(tmc_ex_adae) ADAE <- tmc_ex_adae %>% dplyr::mutate_if(is.character, as.factor) #' be certain of having factors formatters::var_labels(ADAE) <- lbls_adae }) datanames <- c("ADSL", "ADAE") datanames(data) <- datanames join_keys(data) <- default_cdisc_join_keys[datanames] app <- init( data = data, modules = modules( tm_t_events_by_grade( label = "Adverse Events by Grade Table", dataname = "ADAE", arm_var = choices_selected(c("ARM", "ARMCD"), "ARM"), llt = choices_selected( choices = variable_choices(data[["ADAE"]], c("AETERM", "AEDECOD")), selected = c("AEDECOD") ), hlt = choices_selected( choices = variable_choices(data[["ADAE"]], c("AEBODSYS", "AESOC")), selected = "AEBODSYS" ), grade = choices_selected( choices = variable_choices(data[["ADAE"]], c("AETOXGR", "AESEV")), selected = "AETOXGR" ) ) ) ) shinyApp(app$ui, app$server) ```
- Loading branch information