modify.concepts.conceptmaps {comato} | R Documentation |
Modifying the concepts of all maps of a conceptmaps object.
Description
modify.concepts
calls modify.concepts.conceptmap
for each conceptmap object of a conceptmaps object.
Therefore, all concept maps will share the same set of concepts afterwards.
Usage
## S3 method for class 'conceptmaps'
modify.concepts(x, concept.list, filter = F, ...)
Arguments
x |
A conceptmaps object. |
concept.list |
A vector of strings that contains the list of concepts. |
filter |
If TRUE, concept maps that contain no propositions after the concept modification are removed from the result. |
... |
- |
Value
A conceptmaps object that contains (possibly a subset of) the maps of maps
in which every map contains the concepts of concept.list
.
Examples
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)
modify.concepts(cms, c("Object", "Class"), filter=TRUE)
[Package comato version 1.1 Index]