Split river lines around point locations
split_rivers_at_points(rivers, pts, tolerance = NULL)A rivers object with non-split rivers replaced with two new features each at opposite sides of the node which splits it. All attributes assumed to be constant.
A rivers object returned by import_rivers().
An sf object, points at which to split river lines.
A numeric value specifying the snapping distance
(in map units) to align points to the river network. Defaults to NULL,
meaning no snapping.