modify.concepts.conceptmaps: Modifying the concepts of all maps of a conceptmaps object.

Description Usage Arguments Value Examples

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

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 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)

comato documentation built on May 2, 2019, 6:52 a.m.