check_transitivity: Check transitivity of station matrix

Description Usage Arguments Details Value

Description

Finds all monitoring stations that violate the assumption of transitivity for upstream/downstream relations.

Usage

1

Arguments

table

a data table created from initialize_matrix_from_stations. An (n x n+1) data.table with first column named "ID" and all other columns named according to station number. Row i and column i+1 should correspond to the same station.

Details

The transitivity assumption states that if x is upstream of y and y is upstream of z, then x is upstream of z. This tests that assumption for a matrix

Value

A list with an element for every x,y station pair that violates the transitivity assumption or an empty vector


ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.