| visOmopTable | R Documentation |
<summarised_result>This function combines the functionalities of formatEstimateValue(),
estimateName(), formatHeader(), and formatTable()
into a single function specifically for <summarised_result> objects.
visOmopTable(
result,
estimateName = character(),
header = character(),
settingsColumn = character(),
groupColumn = character(),
rename = character(),
type = NULL,
hide = character(),
columnOrder = character(),
factor = list(),
style = NULL,
showMinCellCount = TRUE,
.options = list()
)
result |
A |
estimateName |
A named list of estimate names to join, sorted by
computation order. Use |
header |
A vector specifying the elements to include in the header. The order of elements matters, with the first being the topmost header. Elements in header can be:
|
settingsColumn |
A character vector with the names of settings to
include in the table. To see options use |
groupColumn |
Columns to use as group labels, to see options use
*tidy: The tidy format applied to column names replaces "_" with a space and
converts to sentence case. Use |
rename |
A named vector to customise column names, e.g., c("Database name" = "cdm_name"). The function renames all column names not specified here into a tidy* format. |
type |
Character string specifying the desired output table format.
See |
hide |
Columns to drop from the output table. By default, |
columnOrder |
Character vector establishing the position of the columns in the formatted table. Columns in either header, groupColumn, or hide will be ignored. |
factor |
A named list where names refer to columns (see available columns
in |
style |
Defines the visual formatting of the table. This argument can be provided in one of the following ways:
|
showMinCellCount |
If |
.options |
A named list with additional formatting options.
|
A formatted table of the class selected in "type" argument.
result <- mockSummarisedResult()
result |>
visOmopTable(
estimateName = c("N%" = "<count> (<percentage>)",
"N" = "<count>",
"Mean (SD)" = "<mean> (<sd>)"),
header = c("cohort_name"),
rename = c("Database name" = "cdm_name"),
groupColumn = strataColumns(result)
)
result |>
visOmopTable(
estimateName = c(
"N%" = "<count> (<percentage>)",
"N" = "<count>",
"Mean (SD)" = "<mean> (<sd>)"
),
header = c("cohort_name"),
rename = c("Database name" = "cdm_name"),
groupColumn = strataColumns(result),
type = "reactable"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.