downset: downset

View source: R/downset.R

downsetR Documentation

downset

Description

The function computes a boolean vector identifying the poset elements below (or equal to) at least one element of the input subset Q.

Usage

downset(z, ...)
## S3 method for class 'cover'
downset(z, ...)
## S3 method for class 'incidence'
downset(z, Q = NULL, ...)

Arguments

z

a cover, or an incidence, matrix of S3 class cover or incidence respectively

Q

vector of indices identifying a subset of poset profiles

...

any of the above.

Examples

z <- getzeta(var2prof(varlen = c(2, 2, 2)))

plot(z, col = 1 + c(1, 1, 0, 0, 1, 0, 0, 0) + c(0, 0, 0, 2, 0, 0, 2, 2), lwd = 2)

Q <- c(4, 7, 8)
rownames(z)[Q]
downset(z, Q)

Q <- c("211", "112", "111")
downset(z, Q)

parsec documentation built on Aug. 19, 2023, 5:07 p.m.