powered by
This function creates a vector of factors where each element refers to a condition to which a sample belongs.
gen.cond(nb_cond=2,nb_sample=5)
Number of biological conditions.
Number of samples in each condition.
A vector of factors of length nb_cond*nb_sample.
# NOT RUN { cond=gen.cond(nb_cond=2,nb_sample=6) #[1] 1 1 1 1 1 1 2 2 2 2 2 2 #Levels: 1 2 # }
Run the code above in your browser using DataLab