R/build.design.R

build.design <-
function(vec, des=NULL, start=2){
	tmp <- matrix(0,length(vec),nlevels(vec)-start+1)
	for (i in 1:ncol(tmp)){tmp[,i] <- vec==levels(vec)[i+start-1]}
	cbind(des,tmp)
	}
ShixiangWang/arrayConnector documentation built on May 14, 2019, 6:02 a.m.