most_downstream: Get a list of the most downstream stations

Description Usage Arguments Value Examples

Description

return a list of stations that are the most downstream in their catchment area

Usage

1
most_downstream(table, diagnl = 9)

Arguments

table

a data.table describing upstream / downstream relationships between stations.

diagnl

Value

character vector of stations upstream of target station

Examples

1
2
3
4
5
r <- initialize_matrix_from_stations(c('stn1', 'stn2', 'stn3'))
set_upstream('stn1', r, 'stn2')
get_upstream('stn1', r)

 @export

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