Description Usage Arguments Examples
Creates a new table w. Because of the limitations of the data.table object on which the upstream-downstream tables are based, the object is not modified in-place. Instead, a new object must be created. A practical workaround is to assign the new table object the same name as the old table
1 | add_station_to_table(stations, table)
|
stations |
a list of station names to be added to the table |
table |
a data.table describing upstream / downstream relationships between stations. |
1 2 3 | a <- initialize_matrix_from_stations(c('st1', 'st2','st8'))
set_upstream('st1', a, c('st2', 'st8'))
a <- add_station_to_table(c('st4', 'st5'), a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.