This function takes a network and divides it into distinct reaches based on a target size
if you want only set boundaries, use setnodes and set targetsize very high
The setnodes argument can be used to ensure certain reach boundaries (not implemented yet)
Usage
AssignReaches(network, targetsize = NA, habitat, setnodes)
Arguments
- network
A sfnetwork
- targetsize
a desired size to use for reaches, set to NA to use only set nodes
- habitat
a logical vector that identifies areas of habitat (T) vs non-habitat (F)
- setnodes
A sf POINTS object that contains nodes to add to the shape
Value
A new sfnetwork object divided into reaches of approximately the correct size