accumulate | R Documentation |
If direction is down, then the accumulated distances will reflect the distance from the 'upstream' point to each downstream point, and values will be positive. If direction is "up", then the distances will be negative and accumulate from 'downstream' to 'upstream'.
accumulate( ws, upstream, downstream = Inf, direction = c("down", "up"), variable = "length", parallel = FALSE )
ws |
Watershed object |
upstream |
ID number of upstream point; if Inf ALL upstream pixels will be returned |
downstream |
ID of downstream point; if Inf ALL downstream pixels will be returned |
direction |
In which direction should the variable be accumulated; see 'details' |
variable |
The variable to accumulate |
parallel |
Boolean, should parallel processing be used? |
A matrix, first column connected pixelIDs, second the accumulated variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.