Description Usage Arguments Value Uses
This function repeatedly applies vert.attr() to a set of attributes. The problem that this function solves is that authors (nodes) in the graph and authors (records) in the data.frame data are not necessarily in the same sort order.
1 2 | vert.attr.multi(data, graph, dataID, graphID = "name", attributes, FUN = NA,
attr.names = attributes)
|
data |
The data.frame containing the vertex attribute variables to be imported in the graph (it must also include a authorID variable). |
graph |
The graph where to import the attribute. |
dataID |
Character. The ID variable for nodes in |
graphID |
Character. The vertex attribute that contains node IDs in
|
attributes |
Character. Variable names in |
FUN |
Character. Function names given as character vector (the FUN
argument to |
attr.names |
Character. Names to use for the attributes in the graph.
Defaults to |
An igraph object.
vert.attr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.