is.preorder: is.preorder

View source: R/is.preorder.R

is.preorderR Documentation

is.preorder

Description

The function checks whether the input boolean square matrix m represents a preorder.

Usage

is.preorder(m)

Arguments

m

a boolean square matrix.

See Also

transitivity, binary, reflexivity,

antisymmetry, is.partialorder,

validate.partialorder.incidence

Examples

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]

is.preorder(M)

parsec documentation built on Aug. 19, 2023, 5:07 p.m.