Learn R Programming

poseticDataAnalysis (version 1.0.0)

IsSymmetric: Checking binary relation symmetry.

Description

Checks whether the input binary relation is symmetric.

Usage

IsSymmetric(rel)

Value

A boolean value.

Arguments

rel

A two-columns character matrix, each row comprising an element (pair) of the binary relation.

Examples

Run this code
rel <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d",
  "b", "a",
  "b", "c",
  "d", "b"
), ncol = 2, byrow = TRUE)

chk<-isSymmetric(rel)

Run the code above in your browser using DataLab