View source: R/flextable-getListing.R
createFlextableWithHeader | R Documentation |
Create a flextable, setting the column names to syntactic names if it is not the case.
createFlextableWithHeader(
data,
headerDf = NULL,
title = NULL,
includeRownames = TRUE,
colHeaderMerge = TRUE
)
data |
Data.frame with data. |
headerDf |
(optional) Data.frame with header.
This should contain the same number of columns than |
title |
Character vector with title(s) for the table. Set to NULL (by default) if no title should be included. |
includeRownames |
Logical, if TRUE (by default)
rownames are included in the |
colHeaderMerge |
(flextable output) Logical, if TRUE (FALSE by default) the column header is merged. |
list with:
'ft': flextable
'colsData': Named vector with original column names, with names set to new syntactic names.
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.