Description Usage Arguments Examples
Given a data.table and a list containing vertices and their attributes, creates a data.table that can be used to create the vertices in an igraph graph
1 | make_vertices_dt(dt, vertex_info, same_v_attr_list = NULL, parse_name = F)
|
dt: |
data.table containing columns for all the vertexes and vertex attributes |
vertex_info: |
named list, where the name is the vertex column name and the contents of each named entry is a character vector containing the names of the attribute columns to be associated with the vertex of interest |
same_v_attr_list: |
named list where the name is the title to resolve the associated character vector names to |
parse_name: |
whether or not to parse the entity_type and add it to the node name |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.