Skip to contents

For examples, see dod.river().

Usage

dod.river.index(url, name, debug = 0)

Arguments

url

character value indicating the URL of a station listing. If not provided, this defaults to https://hpfx.collab.science.gc.ca/today/hydrometric/doc/hydrometric_StationList.csv and this is the only URL on which the code is expected to work.

name

character value indicating the name of the station for which information is sought. This may be a regular expression. If not provided, "sackville.*bedford" is used. Set name to NULL to get a listing for all stations.

debug

integer indicating the level of debugging information that is printed during processing. The default, debug=0, means to work quietly.

Value

a data frame holding columns named "id", "name", "latitude", "region" and `"tz", with one row for each selected station.

Author

Dan Kelley