antiChain: Generate an anti-chain from a vector of elements' labels

View source: R/antiChain.R

antiChainR Documentation

Generate an anti-chain from a vector of elements' labels

Description

The function produces an antichain from the vector of elements' labels elements. If elements is a numeric vector, it is first coerced to a character vector.

An antichain is a poset with no comparabilities, therefore the order of the labels in elements does not matter.

Usage

antiChain(elements)

Arguments

elements

a vector of characters with elements' labels.

Value

an environment of class poset.

See Also

function poset for more details and to create a generic poset and function chain to create a complete order.

Examples

antiChain(LETTERS[1:5])

POSetR documentation built on June 22, 2024, 6:54 p.m.