Description Usage Arguments Value Examples
Print a decimal number in procent format
1 | percentage(x, fmt = "1.1")
|
x |
a decimal number, usually between -1 and 1 |
fmt |
format string, '1.1' means a digit before and after the decimal point will be printed |
Character string
1 2 3 | percentage(c(0,0.1,0.25,1))
percentage(c(0,0.1,0.25,1), fmt="1.4")
percentage(c(0,-0.1,0.25,-1), fmt="+1.1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.