Learn R Programming

kstMatrix (version 2.2-1)

kmstructure: 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)

Value

kmstructure object

Arguments

x

Binary matrix representing a family of sets

See Also

Other Constructors: kmfamset(), kmspace()

Examples

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

Run the code above in your browser using DataLab