italic() changes the font decoration (italic style) of a selection of cells in a flextable.
Function signature
Parameters
A
flextable object.Row selector. Accepts integer indices, a one-sided formula (e.g.,
~ col > 5), or a logical vector. NULL selects all rows in the specified part.Column selector. Accepts integer indices, column names, a formula, or a logical vector.
NULL selects all columns.TRUE to apply italic, FALSE to remove it.Which part of the table to target:
"body", "header", "footer", or "all".Return value
The modifiedflextable object.
Examples
Make the header row italic:See also
bold()fontsize()color()style()— apply multiple formatting properties at once