summary.poset: Poset summary

View source: R/summary.poset.R

summary.posetR Documentation

Poset summary

Description

Method of the summary function for objects of class poset.

Usage

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

Arguments

object

an object of class poset.

...

further arguments passed to or from other methods.

Value

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

Examples

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]))

POSetR documentation built on Jan. 17, 2023, 5:18 p.m.