is.upset {parsec} | R Documentation |
is.upset
Description
The function checks whether the input set of elements Q
is an upset of the poset represented by the incidence matrix z
.
Usage
is.upset(z, Q = 1)
Arguments
z |
an incidence matrix. |
Q |
vector specifying the input set of poset elements. |
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]
is.upset(z, Q)
Q <- c("211", "112", "111")
is.upset(z, Q)
[Package parsec version 1.2.7 Index]