View source: R/flextable-convertSummaryStatisticsTableToFlextable.R
formatCustomFlextable | R Documentation |
a^{b}
',
subscript as 'a_{b}
' and bold as 'bold{a}
' in the
the input summary table.Format superscript/subscripts/bold cells in a flextable.
Superscript should be indicated as: 'a^{b}
',
subscript as 'a_{b}
' and bold as 'bold{a}
' in the
the input summary table.
formatCustomFlextable(
dataTable,
ft,
fontname = "Times",
part = "body",
fontsize = 8,
iBase = 0,
bold = FALSE
)
dataTable |
data.frame with data used in table, summary table for body or header data.frame for the header. |
ft |
Corresponding |
fontname |
String with font name, 'Times' by default. |
part |
string with part of the table to consider,
see |
fontsize |
Integer with font size, 8 by default. |
iBase |
Integer with base row index (if different than 0). |
bold |
Logical (FALSE by default) should the superscript/subscript be indicated in bold? |
flextable
with superscript/subscript.
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.