revSGe | R Documentation |
A SpatialGraph contains a SpatialLinesDataFrame
,
describing the network topology. The input eID
indicates the
identifiers of a set of lines (edges) in the network to be reversed. Note
eID
does not refer to the line index within SG@e
, but to
the Feature Identifiers, as extracted from row.names(SG@e@data)
revSGe(SG, eID)
SG |
|
eID |
vector of Feature Identifiers for lines to be reversed |
Note eID
does not refer to the line index within SG@e
, but to
the Feature Identifiers, as extracted from
row.names(SG@e@data)
. Accordingly to the reversed coordiantes,
the corresponding fields ["v0","v1"], are interchanged.
A SpatialGraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.