util_data_flow_to_flowdat {flowmapper} | R Documentation |
util_data_flow_to_flowdat
Description
This function takes a flow data frame in long format and a data frame with the nodes coordinates and returns a flowdat data frame
Usage
util_data_flow_to_flowdat(nodes, flows)
Arguments
nodes |
A data frame with the nodes of the network |
flows |
A data frame with the flow data |
Details
Helper function to merge od data in long data and nodes to flowdat format
Value
A data frame with the flow data in flowdat format
Author(s)
Johannes Mast,
Examples
#nodes <- data.frame(name=c("a","b","c"),x=c(0,1,2),y=c(0,1,2))
#flow <- data.frame(o=c("a","b"),d=c("b","c"),value=c(1,2))
#util_data_flow_to_flowdat(nodes,flow)
[Package flowmapper version 0.1.2 Index]