Helper for providing a numeric value as percentage

pct(x)

Arguments

x

the numeric value to format as a string percentage for some tab_options() arguments that can take percentage values (e.g., table.width).

See also