read.flow: Reads a rdb formatted data file from the USGS web site or...

Description Usage Arguments Value Author(s) References Examples

Description

This function reads hydrology data from the waterdata.usgs.gov site or from a file (that is in the USGS rdb format).

Usage

1
2
  read.flow(site, start.date, end.date = NULL, gauge = F,
    file = NULL)

Arguments

site

the USGS site_no as a string

start.date

a starting date in a format convertible to a date using as.Date

end.date

an ending data in a format convertible to a date using as.Date

gauge

logical describing whether you want gauge height data in addition to flow

file

a file name if you are reading from a text file

Value

A data frame with date and discharge. If gauge was TRUE, it also includes gauge height. Data qualifiers are included also and their meaning can be looked up on the USGS web site.

Author(s)

Jason Law <jason.e.law@gmail.com>

References

http://waterdata.usgs.gov/nwis

Examples

1
2
d <- read.flow('14211820', start.date = ISOdate(2008,1,1))
head(d)

IHA documentation built on May 2, 2019, 5:15 p.m.