modify.concepts.conceptmap {comato} | R Documentation |
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 class '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
data = rbind(cbind("Object", "Class", "is instance of"), cbind("Class", "Attribute", "has"))
cm = conceptmap(data)
modify.concepts(cm, c("Object", "Class", "Method"))
[Package comato version 1.1 Index]