siteByReach: Produce a site by reach connectivity matrix

View source: R/topology.r

siteByReachR Documentation

Produce a site by reach connectivity matrix

Description

A value of 1 at indices '[i,j]' indicates that reach 'i' is connected to (i.e., downstream of) reach 'j'.

Usage

siteByReach(ws, points, names, self = TRUE)

Arguments

ws

A watershed object

points

A vector of pixel id numbers for sites

names

An optional vector of site names

self

If TRUE, a reach is considered connected to itself

Value

A [Matrix::sparseMatrix()]


mtalluto/WatershedTools documentation built on May 21, 2022, 7:49 p.m.