fmt_ci: Format confidence interval based on the bounds

View source: R/formatters.R

fmt_ciR Documentation

Format confidence interval based on the bounds

Description

Constructs a confidence intervals from upper and lower bounds, placing them in between square brackets

Usage

fmt_ci(lower, upper, digits = 2, drop_0 = FALSE)

Arguments

lower

Lower bound(s) of confidence interval(s). Numeric, or a vector of numbers

upper

Lower bound(s) of confidence interval(s). Numeric, or a vector of numbers

digits

Number of significant digits, defaults to 2

drop_0

Logical. Should leading 0 be dropped, e.g., when reporting correlation coefficients. Note that this only makes sense (and only works) when the values are between -1 and 1


LukasWallrich/timesaveR documentation built on Nov. 29, 2024, 4:47 a.m.