fmt_pct | R Documentation |
Format percentage
fmt_pct(x, digits = 1, pre = "(", post = ")")
x |
A numeric vector. |
digits |
Number of digits. |
pre |
Text before the number. |
post |
Text after the number. |
A numeric vector with the expected format.
fmt_pct(c(1, 1.52, 0.3, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.