exportFactors {DASplusR} | R Documentation |
Adds the scores computed in factor analysis to the given data set.
exportFactors(x, data)
x |
An object of class "factanal" . |
data |
A data object of class "DASData" or
"data.frame" . If not supplied, the active data set of
DAS+R is used. |
If data
is the active data set of DAS+R, the active data
set is reloaded into DAS+R after the scores were added.
Andreas Alfons <andreas.alfons@student.tuwien.ac.at>
ExportFactorsGUI
, factanalDAS
.
## KOLA95_Moss data data(KOLA95_MOSS) factanal.obj <- factanalDAS(data = KOLA95_MOSS, vars = c("Cu","Mg","Mn","Ni","Rb","Th"), logVars = c("Cu","Mg","Mn","Ni","Rb","Th"), factors = 3, robust = "covMcd", scores = "regression") exportFactors(factanal.obj, KOLA95_MOSS)