Report a number, rounded to a specific number of decimals (defaults to two),
using formatC
. Intended for 'R Markdown' reports.
report(x, digits = 2, equals = TRUE)
Numeric. Value to be reported
Integer. Number of digits to round to.
Logical. Whether to report an equals (or: smaller than) sign.
An atomic character vector.
report(.0234)
#> [1] "= 0.02"