| format_interval | R Documentation |
Format a posterior median plus credible interval as a single string
format_interval(median, lower, upper, digits = 2)
median, lower, upper |
Numeric (scalar or vector). |
digits |
Integer rounding precision. |
Character like "5.12 [4.87, 5.4]". A non-finite median yields
NA_character_ (rather than "NA [...]"); a non-finite bound is shown as an
en dash, so the strings stay table-ready.
format_interval(5.123, 4.872, 5.401)
format_interval(NA, 1, 2) # -> NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.