kmstructure: Convert a binary matrix to a 'kmstructure' object

View source: R/kmstructure.R

kmstructureR Documentation

Convert a binary matrix to a kmstructure object

Description

kmstructure() returns a kmstructure object after checking that the passed object is a binary matrix without double rows. The empty set and the full item set are added if missing.

Usage

kmstructure(x)

Arguments

x

Binary matrix representing a family of sets

Value

kmstructure object

See Also

Other Constructors: kmfamset(), kmspace()

Examples

m <- as.matrix(c(1,0,0,0,1,0,1,1,1), nrow=3, byrow=TRUE)
kmstructure(m)


kstMatrix documentation built on Dec. 18, 2025, 5:07 p.m.