format_percent | R Documentation |
Formats a number to percentage by adding "." for thousands, "," for decimals and "%" to the number
format_percent(percentage, number_decimals = 1, format_EN = FALSE)
percentage |
The number you want to format |
number_decimals |
The number of decimal places you want shown. Default is 1 |
format_EN |
Indicate whether the formatting should be done UK style. Default is FALSE |
A string containing the formatted number
format_percent(percentage = 0.123, number_decimals = 1, format_EN = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.