Learn R Programming

POSetR (version 1.1.4)

summary.poset: Poset summary

Description

Method of the summary function for objects of class poset.

Usage

# S3 method for poset
summary(object, ...)

Value

An S3 object of class summary_poset listing and counting the poset elements, their strict dominances and their incomparabilities.

Arguments

object

an object of class poset.

...

further arguments passed to or from other methods.

Examples

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

summary(chain(1:4))
summary(antiChain(LETTERS[1:5]))

Run the code above in your browser using DataLab