powered by
Format percentage
fmt_pct(x, digits = 1, pre = "(", post = ")")
A numeric vector with the expected format.
A numeric vector.
Number of digits.
Text before the number.
Text after the number.
fmt_pct(c(1, 1.52, 0.3, 100))
Run the code above in your browser using DataLab