splice: Select a subset of a set of conceptmaps

Description Usage Arguments Value Examples

Description

splice selects a subset of a set of concept maps and returns them as a new conceptmaps object.

Usage

1
splice(maps, keep)

Arguments

maps

A conceptmaps object.

keep

A numeric vector containing the indices of the maps in maps that should be retained in the subset. Regular R list indexing is used.

Value

A conceptmaps object that consist of the maps with indiced of maps.

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)
 
 splice(cms, c(1,3))

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