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

Description Usage Arguments Value Examples

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

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

1
2
3
data = rbind(cbind("Object", "Class", "is instance of"), cbind("Class", "Attribute", "has"))
cm = conceptmap(data)
modify.concepts(cm, c("Object", "Class", "Method"))

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