# all three conditions are binary, having two levels: 0 and 1
noflevels <- c(2, 2, 2)
findSubsets(noflevels + 1, 2) # 5 8 11 14 17 20 23 26
# stopping at maximum row number 20
findSubsets(noflevels + 1, 2, 20) # 5 8 11 14 17 20
Run the code above in your browser using DataLab