make_edges_directed | R Documentation |
This function converts an undirected network to a directed network following the direction given by the linestring geometries of the edges.
make_edges_directed(x)
x |
An object of class |
In undirected spatial networks it is required that the boundary of edge geometries contain their incident node geometries. However, it is not required that their start point equals their specified *from* node and their end point their specified *to* node. Instead, it may be vice versa. This is because for undirected networks *from* and *to* indices are always swopped if the *to* index is lower than the *from* index. Therefore, the direction given by the *from* and *to* indices does not necessarily match the direction given by the edge geometries.
A directed network as object of class sfnetwork
.
If the network is already directed it is returned unmodified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.