R/Convert3wArray2List.R

Defines functions Convert3wArray2List

Documented in Convert3wArray2List

Convert3wArray2List= function(X){
  if (length(dim(X))!=3) stop("The input must be a 3-way array")
  I=dim(X)[1]
  J=dim(X)[2]
  K=dim(X)[3]
  
  XX=list()
  for (k in 1:K){
    XX[[k]]=X[,,k]
  }
  names(XX)=dimnames(X)[[3]]
  return(XX)

}

Try the MultBiplotR package in your browser

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

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.