View source: R/network_analysis.R
make_edges | R Documentation |
Create tibble of edge data from long tibble
make_edges(dat, node_col, flow_col)
dat |
Tibble - long. |
node_col |
The column to use for node information. networkD3 requires node_num. |
flow_col |
Column that specifies ID of unique flows (commodity). |
Tibble with source-target pairs for each flow.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.