pp: Format Percentages

Description Usage Arguments Value See Also Examples

Description

A wrapper for f that formats proportions as labeled percentages.

Usage

1
pp(x, digits = getOption("digit_digits"))

Arguments

x

A vector of proportions.

digits

The number of digits to use. Defaults to 3. Can be set globally via: options(digit_digits = n) where n is the number of digits beyond the decimal point to include.

Value

Returns a string of publication ready digits.

See Also

f

Examples

1
2
3
pp(c(30, 33.45, .1))
pp(c(30, 33.45, .1), 1)
pp(c(0.0, 0, .2, -00.02, 1.122222, pi))

trinker/digit documentation built on May 31, 2019, 8:41 p.m.