subset_table: Subset table

Description Usage Arguments Details Value

Description

Subset table

Usage

1

Arguments

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

Details

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

Value

a data.table containing a subset of rows and columns from the input table


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