Learn R Programming

comato (version 1.1)

conceptmaps.matrix: Creation of a conceptmaps object from a matrix

Description

conceptmaps creates a conceptmaps object from a set of concept maps represented as a matrix.

Usage

# S3 method for matrix
conceptmaps(x, filter = T, ...)

Arguments

x

A matrix that represents a set of concept maps. The first colum is taken to identify the map, i.e. for each value occuring in the first column, the rows with identical values are extracted and conceptmap.matrix is called on the matrix of these rows and the remaining columns to create a conceptmap object.

filter

If TRUE, empty concept maps (i.e. concept maps without any proposition) are not contained in the resulting set.

...

-

Value

A conceptmaps object.

Examples

Run this code
# NOT RUN {
data = rbind(
 cbind("1", "Object", "Class", "is instance of"),
 cbind("1", "Object", "Attribute", "has"),
 cbind("2", "Class", "Attribute", "possesses"),
 cbind("2", "Attribute", "Data-type", "has"),
 cbind("3", "Object", "Class", "is instance of")
 )
 cms = conceptmaps(data)
# }

Run the code above in your browser using DataLab