Take a data frame and create a dataframe of unique nodes containing their dataframe unique ids, and a 'node id' as well.
make_nodes(attribute_data, node_col, ...)
Arguments
- attribute_data
Dataframe containing node attribute data
- node_col
Column name in attribute_data
that contains the unique common node identifier
- ...
Attribute variables in attribute_data
. Note the function assumes there is only one value for each attribute per node.
Value
A dataframe of nodes as per node_col