routeSDG | R Documentation |
Assume a SpatialGraph is directed and conduct an accumulation of source/sink values at nodes across the network. The accumulation assumes no delay in transmission
routeSDG(SDG, FUN='cumsum', ifld='inflow')
SDG |
|
FUN |
name of a function to be applied for the routing |
ifld |
name on the field in the |
The SpatialGraph
, used as input, must have the ifld
field
to be used as input, in the vertices slot v
(a SpatialPointsDataFrame). The accumulated output is provided
as the new field ofld
in v
. The edges slot e
serves to route the input across the network
A SpatialGraph
with the added ofld
field in the vertex slot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.