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

rel_symmetric

Symmetric Binary Relations


Description

A binary relation R is symmetric, iff for all x, y we have xRy => yRx.

Usage

rel_is_symmetric(R)

rel_closure_symmetric(R)

Arguments

R

an object coercible to a 0-1 (logical) square matrix, representing a binary relation on a finite set.

Details

rel_is_symmetric finds out if a given binary relation is symmetric. Any missing value behind the diagonal results in NA.

The symmetric closure of a binary relation R, determined by rel_closure_symmetric, is the smallest symmetric binary relation that contains R. Here, any missing values in R result in an error.

Value

The rel_closure_symmetric function returns a logical square matrix. dimnames of R are preserved.

On the other hand, rel_is_symmetric returns a single logical value.

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.