Learn R Programming

parsec (version 1.1.1)

reflexivity: reflexivity

Description

The function checks whether the input boolean square matrix m represents a reflexive binary relation.

Usage

reflexivity(m)

Arguments

m
a boolean square matrix.

See Also

transitivity, binary, antisymmetry, is.preorder, is.partialorder, validate.partialorder.incidence

Examples

Run this code
M <- c(TRUE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE,
FALSE, TRUE, TRUE, TRUE, TRUE)
M <- matrix(M, 4, 4)
rownames(M) <- colnames(M) <- LETTERS[1:4]

reflexivity(M)

Run the code above in your browser using DataLab