Learn R Programming

QCA (version 0.2-0)

allExpr: Create a matrix with all possible combinations of conditions

Description

There are $3^k-1$ possible expressions (where k is the number of conditions) for a crisp-set procedure. This function creates a matrix by row-binding the truth tables for all expressions.

Usage

allExpr(column.names, inside=FALSE)

Arguments

column.names
a vector of strings, the column names of the dataset
inside
if TRUE, returns the raw result matrix; if FALSE, print the result matrix without NAs

Value

  • a matrix with $3^k-1$ rows

References

Ragin, Charles C. 2000 Fuzzy-set social science, Chicago: The University of Chicago Press

Examples

Run this code
column.names <- c("First", "Second", "Third")
allExpr(column.names)

Run the code above in your browser using DataLab