make_edges: Create tibble of edge data from long tibble

View source: R/network_analysis.R

make_edgesR Documentation

Create tibble of edge data from long tibble

Description

Create tibble of edge data from long tibble

Usage

make_edges(dat, node_col, flow_col)

Arguments

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).

Value

Tibble with source-target pairs for each flow.


DataScienceScotland/vedar documentation built on April 3, 2022, 10:32 p.m.