sfnetwork_to_dodgr | R Documentation |
The dodgr
package is designed for routing
on directed graphs, and is known for its fast computations of cost matrices,
shortest paths, and more. In sfnetwork, dodgr can be chosen as a routing
backend.
dodgr_to_sfnetwork(x, edges_as_lines = TRUE)
sfnetwork_to_dodgr(x, weights = edge_length(), time = FALSE)
x |
For the conversion to sfnetwork: an object of class
|
edges_as_lines |
Should the created edges be spatially explicit, i.e.
have |
weights |
The edge weights to be stored in the dodgr streetnet.
Evaluated by |
time |
Are the provided weights time values? If |
For the conversion to sfnetwork: An object of class
sfnetwork
. For the conversion from sfnetwork: an object of
class dodgr_streetnet
.
The dodgr
package is designed for
directed graphs. If the provided sfnetwork
object is
undirected, it is made directed by duplicating and reversing each edge.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.