Description Usage Arguments Value Examples
Formats percentages to be displayed in tables or text of report.
1 | fmt_percent(x, symbol = FALSE)
|
x |
numeric vector of percentages |
symbol |
logical indicator to include percent symbol in output. Default is FALSE. |
Formatted percentages
1 2 3 | percent_vals <- c(-1, 0, 0.0001, 0.005, 0.01, 0.10, 0.45356, 0.99, 1.45)
fmt_percent(percent_vals)
fmt_percent(percent_vals, symbol = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.