get_downstream: Get downstream stations

Description Usage Arguments Value Examples

Description

return a list of stations that are downstream of a target station

Usage

1

Arguments

station

target station for which a list of downstream stations is desired

table

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

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.