| nameToVertexIndex {dynamicGraph} | R Documentation |
For each name, find in a list of vertices the index of the vertex with that name.
nameToVertexIndex(vertexnames, vertices)
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. |
Integer vector with the indices of the vertices.
Jens Henrik Badsberg
Names <- c("Sex", "Age", "Eye", "FEV", "Hair", "Shosize")
Types <- rep("Discrete", 6)
vertices <- returnVertexList(Names, types = Types)
nameToVertexIndex(c("Sex", "Eye"), vertices)