rel_graph: Create an Adjacency Matrix Representing a Binary Relation

Description Usage Arguments Value See Also

View source: R/rel-other.R

Description

Returns a binary relation that represents results of comparisons with pord of all pairs of elements in x. We have ret[i,j] == pord(x[[i]], x[[j]], ...).

Usage

1
rel_graph(x, pord, ...)

Arguments

x

list with elements to compare, preferably named

pord

a function with two arguments, returning a single Boolean value, e.g., pord_spread, pord_nd, or pord_weakdom

...

additional arguments passed to pord

Value

Returns a square logical matrix. dimnames of the matrix correspond to names of x.

See Also

Other binary_relations: check_comonotonicity, pord_nd, pord_spread, pord_weakdom, rel_is_antisymmetric, rel_is_asymmetric, rel_is_cyclic, rel_is_irreflexive, rel_is_reflexive, rel_is_symmetric, rel_is_total, rel_is_transitive, rel_reduction_hasse


agop documentation built on March 26, 2020, 7:48 p.m.