Learn R Programming

inTextSummaryTable (version 3.3.2)

formatCustomFlextable: 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.

Description

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.

Usage

formatCustomFlextable(
  dataTable,
  ft,
  fontname = "Times",
  part = "body",
  fontsize = 8,
  iBase = 0,
  bold = FALSE
)

Value

flextable with superscript/subscript.

Arguments

dataTable

data.frame with data used in table, summary table for body or header data.frame for the header.

ft

Corresponding flextable.

fontname

String with font name, 'Times' by default.

part

string with part of the table to consider, see compose.

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?

Author

Laure Cougnaud