powered by
Computes the matrix representation of a knowledge structure.
as.binaryMatrix(x)
An R object of class matrix.
matrix
An R object of class kstructure (or kspace).
kstructure
kspace
as.binaryMatrix takes an arbitrary knowledge structure in set representation and computes its matrix form.
as.binaryMatrix
as.famset, kspace, kstructure
as.famset
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)
Run the code above in your browser using DataLab