View source: R/formatPercent.R
formatPercent | R Documentation |
Takes a number and formats it as a percentage. Used by
confIntIndependentProportion
.
formatPercent(x, digits = 1)
x |
numeric vector of proportions |
digits |
number of digits |
Leonhard Held
formatPercent(c(0.115, 0.5)) # "11.5%" "50.0%"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.