Learn R Programming

poseticDataAnalysis (version 1.0.0)

POSetJoin: Computing join (least upper bound).

Description

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

Usage

POSetJoin(poset, elements)

Value

A character string (the name of the join).

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")

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

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

lub<-POSetJoin(pos, c("a", "c"))


Run the code above in your browser using DataLab