Learn R Programming

multiplex (version 1.6)

fltr: Principal filter

Description

A function to find principal filter in a partial order

Usage

fltr(e, PO, rclos = TRUE)

Arguments

e
the reference element in the partial order
PO
the partial order
rclos
(logical) apply reflexive closure?

Value

  • A vector with elements belonging to the principal filter (or ideal) of the reference node in the partial order.

Details

This function helps to find principal filters in a partial order structure, or else principal ideals in case we use the transpose of the partial order.

See Also

galois, partial.order, diagram

Examples

Run this code
## Create a data frame
dfr <- data.frame(x=1:3, y=5:7)

## Partial ordering of concepts
PO <- partial.order(galois(dfr),"galois")

## Filter for the first element
fltr(1, PO, rclos=TRUE)

Run the code above in your browser using DataLab