num_percent | R Documentation |
Formats numbers as percentages.
num_percent(x, digits = 2L, format = "f", ...)
parse_percent(x, digits = NA, format = "f", ...)
x |
a numeric vector. |
digits |
an integer to indicate the number of digits of the percentage string. |
format |
format type passed to |
... |
additional parameters passed to |
Other numeric vectors:
num_accounting()
,
num_comma()
,
num_currency()
,
num_digits()
,
num_scientific()
num_percent(rnorm(10, 0, 0.1))
num_percent(rnorm(10, 0, 0.1), digits = 0)
parse_percent("0.5%")
parse_percent(c("15.5%", "25.12%", "73.5"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.