Learn R Programming

comato (version 1.1)

conceptmap.matrix: 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 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

Run this code
# NOT RUN {
data = rbind(cbind("Object", "Class", "is instance of"), cbind("Class", "Attribute", "has"))
cm = conceptmap(data)
# }

Run the code above in your browser using DataLab