Displaying 1 result from an estimated 1 matches for "base3row".
2007 Sep 16
1
programming question
...2 2 0
219 2 2 0 1 0
In the first iteration, the first element 2 eliminates 8 and 26 because both
contain number 2 in the last position (first line being shorter).
The element 24 eliminates 51 and 78, and so on.
`findSubsets2` <-
function(element) {
require(QCA)
base3row <- getRow(rep(3,5), element, zerobased=TRUE)
increment <- function(x, y) {
a <- x
for (i in 1:2) {
a <- as.vector(outer(y, a, "+"))
x <- c(x, a)
}
return(x)
}
indices <- which(base3row == 0)...