View source: R/print.efa_group.R
| print.efa_group | R Documentation |
print() turns an efa_group() result into a sectioned report: a header recapping
the groups, the common number of factors, the estimator, the rotation, and the
alignment; a group-pair table of the matched Tucker congruences between the aligned
loadings; a per-pair summary of the cross-group loading differences (with the salient
and, when a bootstrap was run, the confidence-interval flags); and, when
invariance = TRUE, a group-pair by factor grid of the approximate-invariance verdicts.
format() assembles the same report and returns it as a character vector; print() is
cat(format(x), sep = "\n"). The lines follow the active console theme, so they are
plain when colours are disabled (for example when captured into a file or stripped with
cli::ansi_strip()). print() does not draw a plot; use plot.efa_group().
## S3 method for class 'efa_group'
print(x, digits = 3, ...)
## S3 method for class 'efa_group'
format(x, digits = 3, ...)
x |
An object of class |
digits |
Integer. The number of decimal places the reported values are rounded to. Default is 3. |
... |
Not used; for consistency with the generic. |
print() returns its argument x invisibly. format() returns a character
vector with the report lines.
Other factor analysis:
efa_average(),
efa_fit(),
efa_group(),
efa_mi(),
plot.efa_group()
g <- rep(c("g1", "g2"), length.out = nrow(GRiPS_raw))
mg <- efa_group(GRiPS_raw, groups = g, n_factors = 1)
mg
# format() returns the same lines as a character vector:
writeLines(format(mg))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.