formatPercent {biostatUZH} | 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%"