# create a binary matrix based on 3 conditions
createMatrix(rep(2, 3))
# create a matrix based on 3 conditions where the second has three levels
createMatrix(c(2, 3, 2))
# the matrix has 2*3*2 = 12 rows
Run the code above in your browser using DataLab