Learn R Programming

poseticDataAnalysis (version 1.0.0)

LiftingPOSet: Lifting posets.

Description

Lifts the input poset, i.e. adds a (possibly new) bottom element to it.

Usage

LiftingPOSet(poset, element)

Value

The lifted poset, an object of S4 class POSet.

Arguments

poset

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

element

A character string (the name of the added bottom).

Examples

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

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

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

#Lifting
lifted.pos <- LiftingPOSet(pos, "bot")

Run the code above in your browser using DataLab