Description Usage Arguments Details Value
Subset table
1 | subset_table(table, pattern, stn_list)
|
table |
a data table created from initialize_matrix_from_stations. An (n x n+1) data.table with first column named "ID" and all other columns named according to station number. Row i and column i+1 should correspond to the same station. |
pattern |
regular expression to match station names. |
stn_list |
a list of stations to include in the subset. Ignored if pattern is provided |
to return only stations within a particular drainage area (e.g. stations beginning with '02'), use pattern='^xx' where xx is the drainage basin number. So "^01" would return stations from NS & NB and "^08" would return stations from BC
a data.table containing a subset of rows and columns from the input table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.