findDwnstrmSite: Determine next downstream site

View source: R/findDwnstrmSite.R

findDwnstrmSiteR Documentation

Determine next downstream site

Description

Determine which detection site is the closest downstream site from a starting site, based on hydrographic flowlines

Usage

findDwnstrmSite(
  site_id = NULL,
  flow_lines = NULL,
  sites_joined = NULL,
  quiet = TRUE
)

Arguments

site_id

Site code for the starting detection site.

flow_lines

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

sites_joined

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.

Value

character of the site code downstream

Author(s)

Kevin See


KevinSee/PITcleanr documentation built on Feb. 27, 2024, 11:03 p.m.