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.
## Create a data framedfr <- data.frame(x=1:3, y=5:7)
## Partial ordering of conceptsPO <- partial.order(galois(dfr),"galois")
## Filter for the first elementfltr(1, PO, rclos=TRUE)