powered by
The function checks whether square matrix m represents a binary relation.
m
binary(m)
a square matrix.
transitivity, reflexivity,
transitivity
reflexivity
antisymmetry, is.preorder,
antisymmetry
is.preorder
is.partialorder, validate.partialorder.incidence
is.partialorder
validate.partialorder.incidence
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] binary(M)
Run the code above in your browser using DataLab