powered by
This function takes a flow data frame in long format and a data frame with the nodes coordinates and returns a flowdat data frame
util_data_flow_to_flowdat(nodes, flows)
A data frame with the flow data in flowdat format
A data frame with the nodes of the network
A data frame with the flow data
Johannes Mast,
Helper function to merge od data in long data and nodes to flowdat format
#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)
Run the code above in your browser using DataLab