Learn R Programming

TSQCA (version 1.3.1)

qca_extract: Extract solution information from a QCA minimization result

Description

Internal helper to obtain the solution expression, consistency (inclS) and coverage (covS) from an object returned by QCA::minimize().

Usage

qca_extract(sol, extract_mode = c("first", "all", "essential"))

Value

A list with elements depending on extract_mode.

For "first": expression, inclS, covS.

For "all": adds n_solutions.

For "essential": adds selective_terms, unique_terms,

n_solutions.

If extraction fails, returns "No solution" and NA_real_

for numeric values.

Arguments

sol

A solution object returned by QCA::minimize().

extract_mode

Character. How to handle multiple intermediate solutions:

  • "first" - return only the first solution (M1). Default.

  • "all" - return all solutions concatenated.

  • "essential" - return essential prime implicants (terms common to all solutions), plus selective prime implicants and solution count.