R/dimActive.R

Defines functions dimActive

Documented in dimActive

dimActive <-
function(res) {
  analyse = whichFacto(res)
  if(!analyse %in% c("PCA", "CA", "CaGalt", "MCA", "MFA", "DMFA", "FAMD", "GPA", "HCPC","HCPCshiny"))
    {return(warning("the parameter 'res' has to be an object of class 'PCA', 'CA', 'CaGalt', 'MCA', 'MFA', 'DMFA', 'FAMD', 'GPA' or 'HCPC'"))}
	param = getParam(res)
    switch(analyse,
           PCA = {
             c(param$ind, param$var)
           },
           
           CA = {
             c(param$row, param$col)
           },
           
           CaGalt = {},
           
           MCA = {
             c(param$ind, length(param$modalites))
           },
           
           MFA = {
		     c(param$ind, sum(param$group))
		  },
           
           HMFA = {},
           
           DMFA = {},
           
           FAMD = {},
           
           GPA = {},
           
           HCPC = {})
  }

Try the FactoInvestigate package in your browser

Any scripts or data that you put into this service are public.

FactoInvestigate documentation built on Nov. 28, 2023, 1:10 a.m.