R/print.mpMFA.R

Defines functions print.mpMFA

Documented in print.mpMFA

print.mpMFA <- function (x,...) {

  res.mpMFA <- x
  if (!inherits(res.mpMFA, "mpMFA")) stop ("no convenient data")
  cat("**Results for Multiple Factor Analysis **\n")
  cat ("The analysis was performed on ",res.mpMFA$Overview$num.obs,
       "individuals, described by", nrow(res.mpMFA$InnerProduct$C), "tables.\n\n")
  cat("*The results for MFA are available for the following objects:\n\n")
  res <- array("", c(5, 2), list(1:5, c("Name", "Description")))
  
  res[1,] <- c("$Overview","Overview")
  res[2,] <- c("$InnerProduct","Inner Product")
  res[3,] <- c("$Compromise","Compromise")
  res[4,] <- c("$Table","Table")
  
  indice = 4
  if(!is.null(res.mpMFA$Supp))
  {	res[indice + 1,] <- c("$Supp","Supplementary Projections")
  	indice = indice + 1
  }
 
  print(res[1:indice,])
}

Try the MExPosition package in your browser

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

MExPosition documentation built on May 29, 2017, 2:27 p.m.