formatCustomFlextable: Format superscript/subscripts/bold cells in a flextable....

View source: R/flextable-convertSummaryStatisticsTableToFlextable.R

formatCustomFlextableR Documentation

Format superscript/subscripts/bold cells in a flextable. Superscript should be indicated as 'a^b', subscript as 'a_b' and bold as bolda 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 bolda in the the input summary table.

Usage

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

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?

Value

flextable with superscript/subscript.

Author(s)

Laure Cougnaud


inTextSummaryTable documentation built on Sept. 12, 2023, 5:06 p.m.