fxTable {visOmopResults} | R Documentation |
Creates a flextable object from a dataframe
Description
Creates a flextable object from a dataframe using a delimiter to span the header, and allows to easily customise table style.
Usage
fxTable(
x,
delim = "\n",
style = "default",
na = "-",
title = NULL,
subtitle = NULL,
caption = NULL,
groupColumn = NULL,
groupNameCol = lifecycle::deprecated(),
groupAsColumn = FALSE,
groupNameAsColumn = lifecycle::deprecated(),
groupOrder = NULL,
colsToMergeRows = NULL
)
Arguments
Value
A flextable object.
A flextable object.
Examples
mockSummarisedResult() |>
formatEstimateValue(decimals = c(integer = 0, numeric = 1)) |>
formatHeader(header = c("Study strata", "strata_name", "strata_level"),
includeHeaderName = FALSE) |>
fxTable(
style = "default",
na = "--",
title = "fxTable example",
subtitle = NULL,
caption = NULL,
groupColumn = "group_level",
groupAsColumn = TRUE,
groupOrder = c("cohort1", "cohort2"),
colsToMergeRows = "all_columns"
)
[Package visOmopResults version 0.3.0 Index]