util_data_flow_to_flowdat: util_data_flow_to_flowdat

util_data_flow_to_flowdatR 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)

flowmapper documentation built on Sept. 11, 2024, 8:23 p.m.