Skip to contents

Rounds proportions to significant digits both near 0 and 1

Usage

proportion_round(p, digits = 2)

Arguments

p

probabiity

digits

rounding digits

Value

numeric vector

Examples

proportion_round(0.01111)
#> [1] 0.01