powered by
Format a summarised_treatment result into a visual table.
tableTreatment( result, header = c("cdm_name", "cohort_name"), groupColumn = "variable_name", type = "gt", hide = c("window_name", "mutually_exclusive", "censor_date", "cohort_table_name", "index_date", "treatment_cohort_name"), .options = list() )
A table with a formatted version of summariseTreatment() results.
A summarised_result object.
Columns to use as header. See options with availableTableColumns(result).
availableTableColumns(result)
Columns to group by. See options with availableTableColumns(result).
Type of table. Check supported types with visOmopResults::tableType().
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.
visOmopResults::tableOptions()
# \donttest{ cdm <- mockDrugUtilisation() result <- cdm$cohort1 |> summariseTreatment( treatmentCohortName = "cohort2", window = list(c(0, 30), c(31, 365)) ) tableTreatment(result) # }
Run the code above in your browser using DataLab