
Last chance! 50% off unlimited learning
Sale ends in
This module produces a patient profile basic info report using ADaM datasets.
tm_t_pp_basic_info(
label,
dataname = "ADSL",
patient_col = "USUBJID",
vars = NULL,
pre_output = NULL,
post_output = NULL,
transformators = list(),
decorators = list()
)
a teal_module
object.
(character
)
menu item label of the module in the teal app.
(character
)
analysis data used in teal module.
(character
)
name of patient ID variable.
(teal.transform::choices_selected()
)
object with all
available choices and preselected option for variables from dataname
to show in the table.
(shiny.tag
) optional,
with text placed before the output to put the output into context.
For example a title.
(shiny.tag
) optional,
with text placed after the output to put the output into context.
For example the shiny::helpText()
elements are useful.
(list
of teal_transform_module
) that will be applied to transform module's data input.
To learn more check vignette("transform-input-data", package = "teal")
.
(named
list
of lists of teal_transform_module
) optional,
decorator for tables or plots included in the module output reported.
The decorators are applied to the respective output objects.
See section "Decorating Module" below for more details.
This module generates the following objects, which can be modified in place using decorators:
table
(datatables
- output of DT::datatable()
)
A Decorator is applied to the specific output using a named list of teal_transform_module
objects.
The name of this list corresponds to the name of the output to which the decorator is applied.
See code snippet below:
tm_t_pp_basic_info(
..., # arguments for module
decorators = list(
table = teal_transform_module(...) # applied only to `table` output
)
)
For additional details and examples of decorators, refer to the vignette
vignette("decorate-module-output", package = "teal.modules.clinical")
.
To learn more please refer to the vignette
vignette("transform-module-output", package = "teal")
or the teal::teal_transform_module()
documentation.
data <- teal_data()
data <- within(data, {
ADSL <- tmc_ex_adsl
})
join_keys(data) <- default_cdisc_join_keys[names(data)]
ADSL <- data[["ADSL"]]
app <- init(
data = data,
modules = modules(
tm_t_pp_basic_info(
label = "Basic Info",
dataname = "ADSL",
patient_col = "USUBJID",
vars = choices_selected(
choices = variable_choices(ADSL),
selected = c("ARM", "AGE", "SEX", "COUNTRY", "RACE", "EOSSTT")
)
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}
Run the code above in your browser using DataLab