Names the columns whose cells carry a horizontal bar behind their figure — a bar chart inside the table, at no cost in width, in html and in Excel. Total and footer rows take none.
One reference per column: every bar in a column is a share of the same ceiling, or two bars
could not be compared. That ceiling is the column's own largest data cell by default, which is what
spreads the bars over the width available; max states it instead, so that two tables can be
read against each other.
It is a display intent, like a caption: the numbers are untouched, and a medium with nowhere to put a bar (the console, a pipe table) ignores it.
Arguments
- x
A
tabxplor_tab.- cols
Column names, or
NULLto remove.- max
The ceiling a full bar means, in the column's stored unit — a percentage is stored between 0 and 1, so
max = 1means 100 %.NULL(the default) orNAtakes the column's largest data cell. Unnamed values are recycled overcols, a named one applies to that column.
Value
x, with its bar columns set (set_bars) ; a named vector of their ceilings,
NA where the column's largest is used, or NULL (get_bars).
See also
new_tab() for the whole meta record.