Skip to contents

This function turns spatially implicit networks into spatially explicit networks by adding a geometry column to the edge data.

Usage

make_edges_explicit(x, ...)

Arguments

x

An object of class sfnetwork.

...

Arguments forwarded to st_as_sf to directly convert the edges table into a sf object. If no arguments are given, the edges are made explicit by simply drawing straight lines between the start and end node of each edge.

Value

An object of class sfnetwork with spatially explicit edges.

Note

If the network is already spatially explicit it is returned unmodified.