# three conditions with two levels each
noflevels <- c(2, 2, 2)
# the second row of the implicant matrix corresponding to the first level of
# the rightmost condition
getRow(noflevels = noflevels + 1, row.no = 2) - 1
# the row numbers of the implicant matrix which correspond to subsets of this level
(rows <- findSubsets(noflevels = noflevels + 1, 2))
# the corresponding matrix representation of these rows
getRow(noflevels = noflevels + 1, row.no = rows) - 1
# stopping at row number 20
getRow(noflevels = noflevels + 1, row.no = findSubsets(noflevels + 1, 2, 20)) - 1
Run the code above in your browser using DataLab