R/myfactor.comb.R

# internal function from package crossdes
"factor.comb" <-
function(p,n){
  f <- matrix(0,p^n,n)
  for( i in 1:n ){
    f[,i] <- rep( 0:(p-1), p^(i-1), each=p^(n-i) )
  }
  f
}

Try the OPDOE package in your browser

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

OPDOE documentation built on May 1, 2019, 8:45 p.m.