tableDrugUtilisation {DrugUtilisation} | R Documentation |
Format a drug_utilisation object into a visual table.
Description
Format a drug_utilisation object into a visual table.
Usage
tableDrugUtilisation(
result,
header = c("cdm_name"),
groupColumn = c("cohort_name", strataColumns(result)),
type = "gt",
hide = c("variable_level", "censor_date", "cohort_table_name", "gap_era", "index_date",
"restrict_incident"),
.options = list()
)
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
|
.options |
A named list with additional formatting options.
|
Value
A table with a formatted version of summariseIndication() results.
Examples
library(DrugUtilisation)
library(CodelistGenerator)
cdm <- mockDrugUtilisation()
codelist <- getDrugIngredientCodes(cdm = cdm, name = "acetaminophen")
cdm <- generateDrugUtilisationCohortSet(cdm = cdm,
name = "dus_cohort",
conceptSet = codelist)
drugUse <- cdm$dus_cohort |>
summariseDrugUtilisation(ingredientConceptId = 1125315)
tableDrugUtilisation(drugUse)
[Package DrugUtilisation version 1.0.4 Index]