Learn R Programming

POSetR (version 1.1.4)

coverMatrix: Poset cover matrix

Description

The function returns the cover matrix for objects of class poset.

Usage

coverMatrix(x)

Value

a logical square matrix.

Arguments

x

an object of class poset.

Examples

Run this code
dom <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d"
), ncol = 2, byrow = TRUE)
p <- poset(x = dom)
coverMatrix(p)

Run the code above in your browser using DataLab