Learn R Programming

poseticDataAnalysis (version 1.0.0)

POSetMeet: Computing meet (greatest lower bound).

Description

The function computes the meet (if existing) of a set of elements, in the input poset.

Usage

POSetMeet(poset, elements)

Value

A character string (the name of the meet).

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(), ...).

elements

A list of character strings (the names of some poset elements).

Examples

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

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

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

glb<-POSetMeet(pos, c("b", "e"))

Run the code above in your browser using DataLab