as.binaryMatrix: Matrix Representation of Knowledge Structures

Description Usage Arguments Details Value See Also Examples

View source: R/as.binaryMatrix.R

Description

Computes the matrix representation of a knowledge structure.

Usage

1

Arguments

x

An R object of class kstructure (or kspace).

Details

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

Value

An R object of class matrix.

See Also

kstructure, as.binmat

Examples

1
2
3
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.matrix(kst)

kst documentation built on April 13, 2018, 5:06 p.m.