as.binaryMatrix function

Matrix Representation of Knowledge Structures

Matrix Representation of Knowledge Structures

Computes the matrix representation of a knowledge structure.

as.binaryMatrix(x)

Arguments

  • x: An object of class kstructure (or kspace).

Details

as.binaryMatrix takes an arbitrary knowledge structure in set representation and computes its matrix form.

Returns

An object of class matrix.

See Also

as.famset, kspace, kstructure

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)