formatPercent: Format a Numeric Proportion

Description Usage Arguments Author(s) Examples

Description

Takes a number and formats it as a percentage. Used by confIntIndependentProportion.

Usage

1
formatPercent(x, digits = 1)

Arguments

x

numeric vector of proportions

digits

number of digits

Author(s)

Leonhard Held

Examples

1
formatPercent(c(0.115, 0.5))  # "11.5%" "50.0%"

biostatUZH documentation built on May 2, 2019, 6:06 p.m.