as.binaryMatrix: Matrix Representation of Knowledge Structures

View source: R/as.binaryMatrix.R

as.binaryMatrixR Documentation

Matrix Representation of Knowledge Structures

Description

Computes the matrix representation of a knowledge structure.

Usage

  as.binaryMatrix(x)

Arguments

x

An R object of class kfamset.

Details

as.binaryMatrix takes an arbitrary family of sets in set representation and computes its matrix form.

Value

An R object of class kmfamset. Further class specifications of x (e.g. kspace or kbasis) are also transferred.

See Also

as.famset

Examples

kst <- kstructure(set(set("a"), set("a","b"), set("a","c"), set("d","e"), 
   set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e")))
as.binaryMatrix(kst)

kst documentation built on Oct. 4, 2026, 5:06 p.m.