nameToVertexIndex: The indices of vertices

Description Usage Arguments Value Author(s) Examples

Description

For each name, find in a list of vertices the index of the vertex with that name.

Usage

1

Arguments

vertexnames

Vector of text strings of the vertexnames of the vertices for which the indices should be found.

vertices

A list of vertices, of each of class containing the class dg.Node.

Value

Integer vector with the indices of the vertices.

Author(s)

Jens Henrik Badsberg

Examples

1
2
3
4
Names <- c("Sex", "Age", "Eye", "FEV", "Hair", "Shosize")
Types <- rep("Discrete", 6)
vertices <- returnVertexList(Names, types = Types)
nameToVertexIndex(c("Sex", "Eye"), vertices)

dynamicGraph documentation built on May 2, 2019, 6:38 a.m.