format columns corresponding to std. dev. and/or variance
format_sdvar(
reStdDev,
use.c = "Std.Dev.",
formatter = format,
digits = max(3, getOption("digits") - 2),
...
)
format_corr(x, maxdim = Inf, digits = 2, maxlen = 10, ...)
get_sd(x, ...)
Arguments
- reStdDev
a vector of standard deviations
- use.c
a character vector indicating which scales to include
- formatter
formatting function
- digits
digits for format
- ...
additional parameters
- x
a square numeric matrix
- maxdim
maximum number of rows/columns to display
- maxlen
maximum number of rows to display
Examples
invisible(gt_load("test_data/models.rda"))
format_sdvar(reStdDev = 1:3, use.c = c("Variance", "Std.Dev."))
#> Name Variance Std.Dev.
#> [1,] "" "1" "1"
#> [2,] "" "4" "2"
#> [3,] "" "9" "3"
format_sdvar(attr(VarCorr(fm1)$cond$Subject, "stddev"))
#> Name Std.Dev.
#> [1,] "(Intercept)" "36.012"