net.total.dist {stream.net} | R Documentation |
Compute the symmetric total distance matrix for stream segments as the sum of upstream and downstream distances.
net.total.dist (dist)
dist |
an upstream/downstream distance matrix from
net.dist . |
A square matrix of dimension the number of segments.
Denis White, white.denis@epa.gov
# Q model random net net <- net.qmodel (10) # add segments net <- net.addsegs (net) # distance matrix net.map (net, segatt=round (net$segs$length, 2)) dmat <- net.dist (net, ends=0.5, method="coordinate") # total distances tdmat <- net.total.dist (dmat) hist (tdmat, col="gray", main="Total Distances")