Arguments
- result
A summarised_result object.
- header
Columns to use as header. See options with
availableTableColumns(result)
.- groupColumn
Columns to group by. See options with
availableTableColumns(result)
.- type
Type of table. Check supported types with
visOmopResults::tableType()
.- hide
Columns to hide from the visualisation. See options with
availableTableColumns(result)
.
Examples
# \donttest{
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
conceptlist <- list("a" = 1125360, "b" = c(1503297, 1503327))
cdm <- generateDrugUtilisationCohortSet(
cdm = cdm,
name = "switch_cohort",
conceptSet = conceptlist
)
#> ℹ Subsetting drug_exposure table
#> ℹ Checking whether any record needs to be dropped.
#> ℹ Collapsing overlaping records.
#> ℹ Collapsing records with gapEra = 1 days.
result <- cdm$cohort1 |>
summariseDrugRestart(switchCohortTable = "switch_cohort")
tableDrugRestart(result)
Drug restart till end of observation
CDMConnector::cdmDisconnect(cdm = cdm)
# }