View source: R/Syntax-Functions.R
write_efa | R Documentation |
Converts variable names to lavaan-compatible exploratory factor analysis syntax
write_efa(nf, vnames)
nf |
integer; number of factors |
vnames |
character vector; names of variables to include in the efa |
character. Use cat()
to best examine the returned syntax.
vnames <- paste("x", 1:10)
syntax <- write_efa(nf = 2, vnames = vnames)
cat(syntax)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.