chain: Generate a complete order from a vector of elements' labels

Description Usage Arguments Value See Also Examples

View source: R/chain.R

Description

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

A complete order is a poset where all of the elements are comparable; the order of the labels in elements defines their position in the chain, from bottom to top.

Usage

1
chain(elements)

Arguments

elements

a vector of characters listing the elements' labels.

Value

an S4 object of class Rcpp_POSet.

See Also

function poset for more details and to create a generic poset and function antiChain to create an anti-chain.

Examples

1
chain(LETTERS[1:5])

POSetR documentation built on March 20, 2021, 5:06 p.m.