Learn R Programming

poseticDataAnalysis (version 1.0.0)

DownsetOf: Computing downsets.

Description

Computes the downset of a set of elements of the input poset.

Usage

DownsetOf(poset, elements)

Value

A vector of character strings (the names of the elements of the downset).

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 vector of character strings (the names of the input elements).

Examples

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

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

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

dwn <- DownsetOf(pos, c("b","d"))

Run the code above in your browser using DataLab