Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rel_graph

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, 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


agop

Aggregation Operators and Preordered Sets

v0.2-3
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre] (<https://orcid.org/0000-0003-0637-6028>), Anna Cena [ctb] (<https://orcid.org/0000-0001-8697-5383>)
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.