tableTreatment {DrugUtilisation} | R Documentation |
Format a summarised_treatment result into a visual table.
Description
Usage
tableTreatment(
result,
header = c("cdm_name", "cohort_name"),
groupColumn = "variable_name",
type = "gt",
hide = c("window_name", "mutually_exclusive")
)
Arguments
result |
A summarised_result object. |
header |
Columns to use as header. See options with
|
groupColumn |
Columns to group by. See options with
|
type |
Type of table. Check supported types with
|
hide |
Columns to hide from the visualisation. See options with
|
Value
A table with a formatted version of summariseTreatment() results.
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
result <- cdm$cohort1 |>
summariseTreatment(
treatmentCohortName = "cohort2",
window = list(c(0, 30), c(31, 365))
)
tableTreatment(result)
[Package DrugUtilisation version 0.8.1 Index]