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

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