Shaping the final table including titles, adding background color, specifying font name and size.
shapeECDCFlexTable(ft, headers, fsize, fname, maincolor, lastbold)
flextable object (see flextable
package)
flextable (see 'flextable'
package), table to shape into ECDC table layout
dataframe including the multiple headers to add to the flextable object.
Please note that the column col_keys
should contain the names of the flextable object
(i.e. col_key = names(x)
), accordingly to set_header_df
.
numeric, font to use (Default 7)
character, font name (Default "Tahoma"
)
character string, hexadecimal code for the header background
color (Default EcdcColors(col_scale = "green", n=1)
)
bolean, last row in bold (Default TRUE
),
usually used when the last row includes totals (EU/EEA totals)
Global function: getTableByMS
Required package flextable