Print method for class tabxplor_fmt
Arguments
- x
A fmt object.
- ...
Other parameters.
- html
Should html tags be added (to print confidence intervals as subscripts) ?
- na
How
NAs should be printed. Default toNA.- special_formatting
Set to
TRUEto print more verbose results, like indicating which is the reference row or col for differences.- stars
Append significance stars after the value (opt-in; default
FALSE). Stars appear only where a per-cell p-value was stored (diff-type CIs / regression coefficients) and are right-padded so numbers stay aligned. They support the number rather than compete with it: in every theme they are drawn like an aside – the chrome's secondary grey, never bold, italic or underlined – so a run of symbols never shouts louder than the value it qualifies. The main display (console,tab_kable(),tab_md()) sets thisTRUE; tooltip / secondary-field re-renders leave itFALSE, so stars never leak.- theme
Which palette the cells are being rendered in. Only the black-and-white publication palettes use it:
theme = "print_marks"writes a repeated superscript mark after each value instead of the significance stars, drawn exactly like them (seestars).NULL(the default) renders no palette annotation at all.- bold_split
Internal (default
FALSE): whenTRUE, attach a per-cellprimary_ncharattribute giving the bold-prefix width of a composite"{pct} (n={n})"cell, so exporters can bold only the primary field in a bold row. Off by default -> the output is attribute-free.- pad
The character used to align numbers: it pads values (composite displays, significance stars, confidence intervals, a mean with no sd) and separates thousands. Defaults to a plain space, or to a figure space (
U+2007, exactly one digit wide) whenhtml = TRUE. Media read in a monospace font (the console, markdown) want the plain space; media rendered in a proportional font (html, Excel) need the figure space, since an ASCII space is only half a digit wide there – and CSS collapses runs of them. One glyph for both jobs, so the thousands mark can never disagree with the padding around it.- syntax
"text"(default) returns the rendered display strings;"excel"returns the per-cell Excel number-format codes used bytab_xl()(the raw value is written unchanged).- .ref
Internal: precomputed reference masks
list(cells=, all_totals=)(derive-once speed-up passed by the exporter prep); computed internally whenNULL.- .digits
Internal: the precision one token was named at in a composite template (
"{base:1}"), passed by the composite expander; overrides every declared default.