Make a node df from the edges df
make_nodes.Rd
Takes a dataframe of edges and returns all the from and to nodes and their nodetype, and attach a column indicating their position along the causal sequence
Arguments
- edgedf
a tibble or dataframe of edges with
from
andto
columns, as well asfromtype
andtotype
- groupers
a character vector of grouping variables that might appear in edgedf. Typically used to retain separate nodes for different planning units or gauges
- typeorder
character vector or dataframe giving the order of the node types in the network, or
werp
(the default).werp
flags the use of the default ranking