routeSDG {SpatialGraph} | R Documentation |
Accumulate sources/sinks along a directed SpatialGraph
Description
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
Usage
routeSDG(SDG, FUN='cumsum', ifld='inflow')
Arguments
SDG |
|
FUN |
name of a function to be applied for the routing |
ifld |
name on the field in the |
Details
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
Value
A SpatialGraph
with the added ofld
field in the vertex slot
[Package SpatialGraph version 1.0-4 Index]