R/gen_cond.R

Defines functions gen.cond

Documented in gen.cond

#Create a vector of factors for nb_cond conditions with nb_sample samples in each condition.
gen.cond=function(nb_cond=2,nb_sample=5){
x=NULL
for (i in 1:nb_cond){
  x=c(x,rep(i,nb_sample))
}
return(as.factor(x))
}

Try the imp4p package in your browser

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

imp4p documentation built on Sept. 5, 2021, 5:38 p.m.