Learn R Programming

VennDiagram (version 1.8.2)

make.truth.table: Make a truth table

Description

Makes a truth table of the inputs.

Usage

make.truth.table(x)

Value

A data frame with length(x) logical vector columns and 2 ^ length(x) rows.

Arguments

x

A short vector.

Author

Richard Cotton

See Also

Examples

Run this code
if (FALSE) make.truth.table(c(a = 1, b = 2, c = 3, d = 4))

Run the code above in your browser using DataLab