
Last chance! 50% off unlimited learning
Sale ends in
Format a drug_restart object into a visual table.
tableDrugRestart(
result,
header = c("cdm_name", "cohort_name"),
groupColumn = "variable_name",
type = "gt",
hide = c("censor_date", "restrict_to_first_discontinuation", "follow_up_days",
"cohort_table_name", "incident", "switch_cohort_table"),
.options = list()
)
A table with a formatted version of summariseDrugRestart() results.
A summarised_result object.
Columns to use as header. See options with
availableTableColumns(result)
.
Columns to group by. See options with
availableTableColumns(result)
.
Type of table. Check supported types with
visOmopResults::tableType()
.
Columns to hide from the visualisation. See options with
availableTableColumns(result)
.
A named list with additional formatting options.
visOmopResults::tableOptions()
shows allowed arguments and their default
values.
# \donttest{
cdm <- mockDrugUtilisation()
conceptlist <- list("a" = 1125360, "b" = c(1503297, 1503327))
cdm <- generateDrugUtilisationCohortSet(
cdm = cdm,
name = "switch_cohort",
conceptSet = conceptlist
)
result <- cdm$cohort1 |>
summariseDrugRestart(switchCohortTable = "switch_cohort")
tableDrugRestart(result)
# }
Run the code above in your browser using DataLab