Learn R Programming

poseticDataAnalysis (version 1.0.0)

POSetElements: Getting poset elements.

Description

Gets the elements of the ground set \(V\) of the input poset \((V,\leq)\).

Usage

POSetElements(poset)

Value

A vector of labels (the names of the elements of the ground set \(V\)).

Arguments

poset

An object of S4 class POSet Argument poset must be created by using any function contained in the package aimed at building object of S4 class POSet (e.g. POSet(), LinearPOSet(), ProductPOSet(), ...) .

Examples

Run this code
elems <- c("a", "b", "c", "d")

dom <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d"
), ncol = 2, byrow = TRUE)

pos <- POSet(elements = elems, dom = dom)

gset <- POSetElements(pos)

Run the code above in your browser using DataLab