make_edges_explicit: Construct edge geometries for spatially implicit networks

View source: R/edge.R

make_edges_explicitR Documentation

Construct edge geometries for spatially implicit networks

Description

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.


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.