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