is.downset: is.downset

Description Usage Arguments Examples

View source: R/is.downset.R

Description

The function returns a boolean value indicating if the subset of profiles Q is a downset of the poset defined through the incidence matrix z.

Usage

1
is.downset(z, Q = 1)

Arguments

z

incidence matrix

Q

vector to select a subset of the profiles in the poset defined through z.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.downset(z, Q)

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

parsec documentation built on May 2, 2019, 6:08 p.m.