View source: R/findDwnstrmHydroseg.R
findDwnstrmHydroseg | R Documentation |
Based on NHDPlus layer ('flow_lines') that includes the hydro sequence of the next downstream segment, this function systematically moves downstream, identifying the next downstream hydro sequence, until it reaches a pre-determined hydro sequence number, at which point it stops.
findDwnstrmHydroseg(hydro_id, flow_lines, hydro_pause_ids)
hydro_id |
a character or numeric input containing the starting hydro sequence |
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 |
hydro_pause_ids |
a vector of hydro sequences containing possible end points |
character of the nearest downstream HY segment to starting segment that falls within a list of possible stopping segments.
Kevin See
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.