conceptmap.matrix {comato}R Documentation

Creation of a conceptmap object from matrix data

Description

conceptmap creates a conceptmap object from a given matrix of a particular format (see below).

Usage

## S3 method for class 'matrix'
conceptmap(x, ...)

Arguments

x

A matrix of character vectors with at least 3 columns. Each row is of the form: start, end, label, (edge attribute 1), ..., (edge attribute m). Each such row will be interpreted as a directed edge from concept "start" to concept "end" with the name "label" and (optional) m additional edge attributes. The colum names of map.data, if present, will be preserved as the names for the attributes.

...

-

Value

A conceptmap object.

Examples

data = rbind(cbind("Object", "Class", "is instance of"), cbind("Class", "Attribute", "has"))
cm = conceptmap(data)

[Package comato version 1.1 Index]