nice_loadings: Creates table of loadings of exploratory factor analysis...

View source: R/nice_loadings.R

nice_loadingsR Documentation

Creates table of loadings of exploratory factor analysis based on the psych::fa function

Description

Creates table of loadings of exploratory factor analysis based on the psych::fa function

Usage

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)

Arguments

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)

Value

A data.frame

Examples

mtcars |> psych::fa(nfactors = 2) |> nice_efa()


jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.