grapes-respects-grapes: Check if Set or FormalContext respects an ImplicationSet

%respects%R Documentation

Check if Set or FormalContext respects an ImplicationSet

Description

Check if Set or FormalContext respects an ImplicationSet

Usage

set %respects% imps

Arguments

set

(list of Sets, or a FormalContext) The sets of attributes to check whether they respect the ImplicationSet.

imps

(ImplicationSet) The set of implications to check.

Value

A logical matrix with as many rows as Sets and as many columns as implications in the ImplicationSet. A TRUE in element (i, j) of the result means that the i-th Set respects the j-th implication of the ImplicationSet.

Examples

fc <- FormalContext$new(planets)
fc$find_implications()
imps <- fc$implications$clone()
fc %respects% imps

fcaR documentation built on May 29, 2024, 2:05 a.m.