splice {comato}R Documentation

Select a subset of a set of conceptmaps

Description

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

Usage

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

 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))

[Package comato version 1.1 Index]