Skip to contents

Rounds proportions to significant digits both near 0 and 1

Usage

proportion_round(p, digits = 2)

Arguments

p

probability

digits

rounding digits

Value

numeric vector

Examples

proportion_round(0.01111)
#> [1] ".01"