percentify: Turns a Probability into a Percentage

Description Usage Arguments Value Examples

Description

The function turns a probability or share (e.g. 0.49, 2.102) into a percentage (49

Usage

1
percentify(.x, .digits = 0)

Arguments

.x

Numeric vector. Input data

.digits

Integer value. To how many digits should the result be rounded.

Value

Vector with rounded percentages + "

Examples

1
2
percentify(1:10 / 10)
percentify(rnorm(10), 2)

STAT-UP/statupinternal documentation built on May 9, 2019, 11:43 a.m.