exportFactors {DASplusR}R Documentation

Add FA Results to a Data Set

Description

Adds the scores computed in factor analysis to the given data set.

Usage

exportFactors(x, data)

Arguments

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.

Details

If data is the active data set of DAS+R, the active data set is reloaded into DAS+R after the scores were added.

Author(s)

Andreas Alfons <andreas.alfons@student.tuwien.ac.at>

See Also

ExportFactorsGUI, factanalDAS.

Examples

  ## 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)

[Package DASplusR version 0.0-1 Index]