nearestDownstreamNeighbor | R Documentation |
Construct a matrix identifying the nearest downstream neighbor from a list of sites
nearestDownstreamNeighbor(ws, x, siteNames)
ws |
A watershed |
x |
A vector of pixel IDs |
names |
Optional vector of site names |
A 2-column matrix; the first column gives the ID of a pixel, the second its nearest downstream neighbor. Pixels in 'x' that have no nearest neighbor are excluded. If 'names' is specified, the output matrix will give site names instead of pixelIDs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.