util_data_flow_to_flowdat | R Documentation |
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)
nodes |
A data frame with the nodes of the network |
flows |
A data frame with the flow data |
Helper function to merge od data in long data and nodes to flowdat format
A data frame with the flow data in flowdat format
Johannes Mast,
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.