Creates a flextable object from a dataframe using a delimiter to span
the header, and allows to easily customise table style.
fxTable(
x,
delim = "\n",
style = "default",
na = "-",
title = NULL,
subtitle = NULL,
caption = NULL,
groupColumn = NULL,
groupAsColumn = FALSE,
groupOrder = NULL,
colsToMergeRows = NULL
)
A flextable object.
A flextable object.
A dataframe.
Delimiter.
Named list that specifies how to style the different parts of
the gt or flextable table generated. Accepted style entries are: title,
subtitle, header, header_name, header_level, column_name, group_label, and
body.
Alternatively, use "default" to get visOmopResults style, or NULL for
gt/flextable style.
Keep in mind that styling code is different for gt and flextable. To see
the "deafult" gt style code use tableStyle()
.
How to display missing values.
Title of the table, or NULL for no title.
Subtitle of the table, or NULL for no subtitle.
Caption for the table, or NULL for no caption. Text in
markdown formatting style (e.g. *Your caption here*
for caption in
italics).
Specifies the columns to use for group labels.
By default, the new group name will be a combination of the column names,
joined by "_". To assign a custom group name, provide a named list such as:
list(newGroupName
= c("variable_name", "variable_level"))
Whether to display the group labels as a column (TRUE) or rows (FALSE).
Order in which to display group labels.
Names of the columns to merge vertically when consecutive row cells have identical values. Alternatively, use "all_columns" to apply this merging to all columns, or use NULL to indicate no merging.