I use the psychpackage command fato analyze factors and therefore has a class object fa. I can request downloads with fac$loadings, but I only want to extract the table containing the loads, so I can use xtable(or similar) to convert it to LaTeX format.
Code example:
library(psych)
library(xtable)
data(bfi)
fac <- fa(r=cor(bfi, use="complete.obs"), nfactors=5, fm="ml", rotate="none")
fac$loadings
ld <- someMagicalFunction(fac$loadings)
xtable(ld)
Can someone tell me what I can use for someMagicalFunction?
source
share