View source: R/nice_loadings.R
nice_loadings | R Documentation |
Creates table of loadings of exploratory factor analysis based on the psych::fa function
nice_loadings(
x,
factor_names = NULL,
sort = TRUE,
cut = 0.2,
round = 2,
title = "Loading matrix",
footnote = NULL,
auto_labels = TRUE
)
nice_efa(..., file = NULL)
x |
Object returned from the psych::fa function. |
factor_names |
A character vector with names for the resulting factors. If not provided, default names are chosen. |
sort |
If TRUE, loadings are sorted. |
cut |
Loadings below cut will be omitted in the resulting data frame. |
round |
Number of digits to round loadings (based on the base::round function) |
A data.frame
wmisc:::mtcars_labeled |>
rename_from_labels() |>
psych::fa(nfactors = 2) |>
nice_efa()
nice_efa(
wmisc:::data_emo_fa,
factor_names = c(
"Emotionserkennung", "Resilienz",
"Aufmerksamkeit", "Erklärung für Emotionen"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.