Expressions written in DNF - disjunctive normal form are used in Boolean logic, signaling a
disjunction of conjunctions, or in other words a sum of products (SOP).
These expressions are useful in Qualitative Comparative Analysis, a social science methodology
that is employed in the context of searching for causal configurations that are associated
with a certain outcome.
They are also used to draw Venn diagrams with the package venn
, which draws any
kind of set intersection (conjunction) based on a custom DNF expression.
The functions curlyBrackets
and roundBrackets
are just special
cases of the functions insideBrackets
and outsideBrackets
, using
the argument type
as either "\{"
or "("
.
The function outsideBrackets
itself can be considered a special case of the
function insideBrackets
, when it uses the argument invert = TRUE
.