add_missing_nodes: Add nodes for flows without a start or end node

View source: R/network_analysis.R

add_missing_nodesR Documentation

Add nodes for flows without a start or end node

Description

Search flows labelled by a flow direction for missing counternode and add row data as required. The magnitude of the flow will be the sum of all incoming flows

Usage

add_missing_nodes(dat, flow_direction = "var_fout")

Arguments

dat

Tibble.

flow_direction

String. "var_fout" to look for missing end nodes, "var_fin" to look for missing start nodes.

Value

Input tibble with missing nodes appended.


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