Description Usage Arguments Value Examples
For a target station, sets a list of stations as 'upstream'
1 | set_upstream(station, table, upstream, set_to = 1)
|
station |
name of a target station for which upstream stations are to be defined. |
table |
a data.table describing upstream / downstream relationships between stations. |
upstream |
a character vector of stations in table that are upstream of the target station. |
set_to |
toggle between setting upstream (1) or not upstream(0) |
Does not return a value, the table is modified in-place.
1 2 3 4 | r <- initialize_matrix_from_stations(c('stn1', 'stn2', 'stn3'))
set_upstream('stn1', r, 'stn2')
@export
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.