View source: R/linkwithinseg.R
connect to the next downstream site within segment
1 | linkwithinseg(site, site_sf, segvert.set = NULL)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.