agop - Online Manual

rel_graph {agop}R Documentation

Create an Adjacency Matrix Representing a Binary Relation

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

rel_graph(x, pord, ...)

Arguments

x

list with elements to compare, preferrably named

pord

a function with two arguments, returning a single boolean value, e.g. pord_spread, pord_spreadsym, 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_spread, pord_spreadsym; pord_weakdom; rel_closure_reflexive, rel_is_reflexive, rel_reduction_reflexive; rel_closure_symmetric, rel_is_symmetric; rel_closure_total_fair, rel_is_total; rel_closure_transitive, rel_is_transitive, rel_reduction_hasse, rel_reduction_transitive; rel_is_antisymmetric; rel_is_asymmetric; rel_is_cyclic; rel_is_irreflexive


[Package agop version 0.2-0 Index]