Learn R Programming

QCA (version 0.6-5)

demoChart: Create the prime implicants chart

Description

This function creates a chart having the prime implicants on the rows and the observed combinations of conditions on the columns. It is useful to determine visually which prime implicant (if any) is essential. The chart is subsequently processed algorithmically to further reduce the reduntant prime implicants. This function is for demonstration purposes only. The internal function createChart() is faster but its arguments are more complex.

Usage

demoChart(rows, columns, splitmethod="")

Arguments

rows
a vector of strings, containing the prime implicants
columns
a vector of strings, containing all combinations of conditions from the original data
splitmethod
string, to declare the separator of the input strings

Value

  • a logical matrix showing which conditions from the (minimized) prime implicants are found in which columns

References

Quine, W.V. (1952) The Problem of Simplifying Truth Functions, The American Mathematical Monthly, Vol. 59, No. 8. (Oct., 1952), pp. 521-531.

Ragin, Charles C. (1987) The Comparative Method. Moving beyond qualitative and quantitative strategies, Berkeley: University of California Press

See Also

prettyTable

Examples

Run this code
chart <- demoChart(c("A", "B", "c"), c("ABC", "Abc", "AbC", "aBc"))
prettyTable(chart)


# Quine's example, page 528
rows <- c("AB", "BC", "Ac", "aC", "abd", "bcd")
cols <- c("ABCD", "ABCd", "ABcD", "ABcd", "AbcD", "Abcd",
          "aBCD", "aBCd", "abCD", "abCd", "abcd")

chart <- demoChart(rows, cols)
prettyTable(chart)

Run the code above in your browser using DataLab