Determine which detection site is the closest downstream site from a starting site, based on hydrographic flowlines
findDwnstrmSite(
site_id = NULL,
flow_lines = NULL,
sites_joined = NULL,
quiet = TRUE
)
Site code for the starting detection site.
An `sf` object containing the flowlines (output of `queryFlowlines()`). Must have a column name called Hydroseq with unique identifiers, and a column name called DnHydroseq containing the hydro sequence of the next downstream segment
An `sf` class object containing points of all detection sites. Must contain a column named `site_code` containing the site code of each site, and a column called Hydroseq containing the hydro sequence closest to each site.
character of the site code downstream