Format the result of summariseAchillesCodeUse into a visual table.
tableAchillesCodeUse.Rd
Arguments
- result
A summarised result with results of the type "achilles_code_use".
- type
Type of desired formatted table, possibilities: "gt", "flextable", "tibble".
- header
A vector containing which elements should go into the header in order. Allowed are:
cdm_name
,group
,strata
,additional
,variable
,estimate
,settings
.- conceptId
If TRUE concept ids will be displayed.
- standard
If TRUE a column indicating if the code is standard will be displayed.
- vocabulary
If TRUE vocabulary id will be displayed.
- groupColumns
Columns to use as group labels. Allowed columns are
cdm_name
and/orcodelist_name
.- excludeColumns
Columns to drop from the output table.
- .options
Named list with additional formatting options. visOmopResults::optionsVisOmopTable() shows allowed arguments and their default values.
Examples
if (FALSE) {
cdm <- mockVocabRef("database")
oa <- getCandidateCodes(cdm = cdm, keywords = "osteoarthritis")
result_achilles <- summariseAchillesCodeUse(list(oa = oa$concept_id), cdm = cdm)
tableAchillesCodeUse(result_achilles)
CDMConnector::cdmDisconnect(cdm)
}