View source: R/node_edge_list.R
node_list | R Documentation |
A node list is a data frame containing node names and associated node ID numbers (integers). This function creates a node list from an edge list, as shown in the examples.
node_list(
edge_list,
from = "From",
to = "To",
node = "Node",
node_id = "node_id"
)
edge_list |
the name of the column in |
from |
the name of the |
to |
the name of the |
node |
the name of the output column containing node names. (Default is " |
node_id |
the name of the output column containing node ID numbers. (Default is " |
See edge_list
for a function to create edge lists.
a node list
library(matsbyname)
library(tidyr)
sutmats <- UKEnergy2000mats %>% spread(key = matrix.name, value = matrix)
el <- edge_list(sutmats)$`Edge list`[[1]]
node_list(el)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.