percent | R Documentation |
Format decimals to percentages
percent(x, digits = 2, format = "f")
x |
An array of decimals |
digits |
number of digits |
format |
f |
An array of formatted strings
nums <- c(0.42, 0.15, 0.4, 0.563, 0.2)
percent(nums)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.