View source: R/bootstrap_calculations_helpers.R
| format_CI | R Documentation |
Formats confidence interval for estimates.
format_CI(estimates, col_names, digits = 4)
estimates |
Data frame or data.table of estimates. |
col_names |
Character vector of column names for estimate, lower, upper. |
digits |
Integer. Decimal places for numeric formatting. Default 4
to provide round-down headroom for downstream display reformatting
(e.g., |
Character string formatted as \"estimate (lower, upper)\".
library(data.table)
est <- data.table(hr = 1.58, lower = 0.86, upper = 2.90)
format_CI(est, col_names = c("hr", "lower", "upper"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.