powered by
Makes a truth table of the inputs.
make.truth.table(x)
A short vector.
A data frame with length(x) logical vector columns and 2 ^ length(x) rows.
length(x)
2 ^ length(x)
expand.grid
# NOT RUN { make.truth.table(c(a = 1, b = 2, c = 3, d = 4)) # }
Run the code above in your browser using DataLab