add_station_to_table: Add station to upstream table

Description Usage Arguments Examples

Description

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

Usage

1

Arguments

stations

a list of station names to be added to the table

table

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

Examples

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)

ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.