Join two spatial networks based on equality of node geometries
Join two spatial networks based on equality of node geometries
A spatial network specific join function which makes a spatial full join on the geometries of the nodes data, based on the st_equals
spatial predicate. Edge data are combined using a bind_rows semantic, meaning that data are matched by column name and values are filled with NA if missing in either of the networks. The from and to columns in the edge data are updated such that they match the new node indices of the resulting network.
st_network_join(x, y,...)
Arguments
x: An object of class sfnetwork.
y: An object of class sfnetwork, or directly convertible to it using as_sfnetwork.
...: Arguments passed on to graph_join.
Returns
The joined networks as an object of class sfnetwork.