Nice statnum Formats numbers in the -1 to 1 range

nice_statnum(x, digits = 2)

Arguments

x

number

digits

Number to round to

Examples

nice_statnum(c(1, -1, runif(4, -1, 1)))
#> [1] "1.00"  "-1.00" "-.26"  ".54"   ".15"   "-.66"