x
|
A data frame or a vector to be formatted.
|
i
|
Row indices where the formatting should be applied.
|
j
|
Column indices where the styling should be applied. Can be:
-
Integer vectors indicating column positions.
-
Character vector indicating column names.
-
A single string specifying a Perl-style regular expression used to match column names.
|
digits
|
Number of significant digits or decimal places.
|
num_fmt
|
The format for numeric values; one of ‘significant’, ‘significant_cell’, ‘decimal’, or ‘scientific’.
|
num_zero
|
Logical; if TRUE, trailing zeros are kept in "decimal" format (but not in "significant" format).
|
num_suffix
|
Logical; if TRUE display short numbers with digits significant digits and K (thousands), M (millions), B (billions), or T (trillions) suffixes.
|
num_mark_big
|
Character to use as a thousands separator.
|
num_mark_dec
|
Decimal mark character. Default is the global option ‘OutDec’.
|
date
|
A string passed to the format() function, such as "%Y-%m-%d". See the "Details" section in ?strptime
|
bool
|
A function to format logical columns. Defaults to title case.
|
math
|
Logical. If TRUE, wrap cell values in math mode $..$ . This is useful for LaTeX output or with HTML MathJax options(tinytable_html_mathjax=TRUE) .
|
other
|
A function to format columns of other types. Defaults to as.character() .
|
replace
|
Logical, String or Named list of vectors
-
TRUE: Replace NA by an empty string.
-
FALSE: Print NA as the string "NA".
-
String: Replace NA entries by the user-supplied string.
-
Named list: Replace matching elements of the vectors in the list by theirs names. Example:
|
escape
|
Logical or "latex" or "html". If TRUE, escape special characters to display them as text in the format of the output of a tt() table.
-
If i and j are both NULL , escape all cells, column names, caption, notes, and spanning labels created by group_tt() .
|
markdown
|
Logical; if TRUE, render markdown syntax in cells. Ex: italicized text is properly italicized in HTML and LaTeX.
|
quarto
|
Logical. Enable Quarto data processing and wrap cell content in a data-qmd span (HTML) or macro (LaTeX). See warnings in the Global Options section below.
|
fn
|
Function for custom formatting. Accepts a vector and returns a character vector of the same length.
|
sprintf
|
String passed to the ?sprintf function to format numbers or interpolate strings with a user-defined pattern (similar to the glue package, but using Base R).
|
…
|
Additional arguments are ignored.
|