View source: R/helperFunctions.R
| setGlobalTableOptions | R Documentation |
Set format options for all subsequent tables unless state a different style in a specific function
setGlobalTableOptions(style = NULL, type = NULL)
style |
Defines the visual formatting of the table. This argument can be provided in one of the following ways:
|
type |
Character string specifying the desired output table format.
See |
setGlobalTableOptions(style = "darwin", type = "tinytable")
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)
)
# drop global options:
setGlobalTableOptions(style = NULL, type = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.