This function locates all vertices connected to the shape specified in mainstem
Usage
FindRoots(shape, mainstem = NA)
Arguments
- shape
An sf object with linestring geometry and Identifier data
- mainstem
a name or unique id for the mainstem that basins branch from
Value
An sf object with points for each potential root