is.linext: is.linext

View source: R/is.linext.R

is.linextR Documentation

is.linext

Description

The function checks whether the input argument order is a linear extension of the poset represented by the incidence matrix z.

Usage

is.linext(order, z)

Arguments

order

indexes of the poset elements (as rows and columns of z matrix) specifying the candidate linear order.

z

incidence matrix.

Examples

Z <- getzeta(var2prof(varlen = c(3, 3)))
ranks <- c(1, 4, 2, 3, 5, 7, 6, 8, 9)
names(ranks) <- rownames(Z)
ranks
is.linext(order = ranks, z = Z)

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