Skip to contents

[Stable]

Formatting Function for extreme values part of a confidence interval. Values are formatted as e.g. "(xx.xx, xx.xx)" if if the number of digits is 2.

Usage

format_extreme_values_ci(digits = 2L)

Arguments

digits

(integer)
number of decimal places to display.

Examples

format_fun <- format_extreme_values_ci(2L)
format_fun(x = c(0.127, Inf))
#> [1] "(0.13, >999.99)"
format_fun(x = c(0, 0.009))
#> [1] "(0.00, <0.01)"