Learn R Programming

POSetR (version 1.1.4)

incidenceMatrix: Poset incidence matrix

Description

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

Usage

incidenceMatrix(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)
incidenceMatrix(p)

Run the code above in your browser using DataLab