Description Usage Arguments Examples
recursively sets all stations downstream of a target station
1 | set_downstream_recursive(station, table, next_downstream, set_to = 1)
|
station |
target station to set |
table |
a data.table describing upstream / downstream relationships between stations. |
next_downstream |
the next station downstream of the target station |
set_to |
toggle between setting upstream (1) or not upstream(0) |
1 2 3 4 5 | M <- initialize_matrix_from_stations(c('stn1', 'stn2', 'stn3', 'stn4', 'stn5'))
set_upstream('stn1', M, c('stn2', 'stn3', 'stn4'))
set_upstream('stn2', M, 'stn3')
set_downstream_recursive('stn5', M, 'stn3')
get_downstream('stn5', M)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.