Formats fractions as percentages, i.e. multiplying them by 100 and adding '%'

fmt_pct(x, digits = 1)

Arguments

x

Numeric, or a vector of numbers

digits

Number of significant digits, defaults to 1