linkwithinseg: connect to the next downstream site within segment

Description Usage Arguments

View source: R/linkwithinseg.R

Description

connect to the next downstream site within segment

Usage

1
linkwithinseg(site, site_sf, segvert.set = NULL)

Arguments

site

NULL in the non-first run. In the first run, site is the datafram contain two columns: seg, vert resulted from reorderbyseg()

site_sf

a site sf object with column: id, lon, lat, geometry, X, Y, and the snapped point information from the riverdist::xy2segvert() columns: seg, vert, snapdist

segvert.set

Null in the first run to identify any withinsegment downstream point. when not NULL, a segvert.set is a dataframe calculate by linkbetweenseg() contains column: seg, vert, seg1, vert1, onnected. Variable seg and vert is the snaped point from site to tth river, whereas column seg1, vert1 are the downstream snaped point


WeiquanLuo/rivertopo documentation built on Jan. 28, 2020, 11:39 a.m.