Description Usage Arguments Value Examples
return a list of stations that are upstream of a target station
1 | get_upstream(station, table)
|
station |
target station for which a list of upstream stations is desired |
table |
a data.table describing upstream / downstream relationships between stations. |
Does not return a value, the table is modified in-place.
1 2 3 | r <- initialize_matrix_from_stations(c('stn1', 'stn2', 'stn3'))
set_upstream('stn1', r, 'stn2')
get_upstream('stn1', r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.