Learn R Programming

comato (version 1.1)

modify.concepts.conceptmap: Adapt list of concepts of a conceptmap object

Description

modify.concepts modifes the list of concepts according to a given list. This includes removing concepts and adjacent propositions as well as adding (unconnected) concepts.

Usage

# S3 method for conceptmap
modify.concepts(x, concept.list, ...)

Arguments

x

A conceptmap object.

concept.list

A vector of strings that contains the list of concepts.

...

-

Value

A conceptmap object that encompasses exactly the concepts of concept.list. Concepts not originally in map are added as isolated nodes/concepts. Concepts of map that are not in concept.list are removed together with their adjacent propositions.

Examples

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

Run the code above in your browser using DataLab