R/Perms.R

Defines functions Perms

Documented in Perms

Perms <-
function(n)#generated matrix of all possible combos of predictors in tree
{
  mat<-matrix(0, nrow=2^n, ncol=n)
  for(i in 1:n)
    {
    mat[,i]<-rep(0:1, times=2^(i-1), each=2^(n-i))
    }
  mat
}

Try the LogicForest package in your browser

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

LogicForest documentation built on May 30, 2017, 3:07 a.m.