download_streamflow: Download USGS streamflow data

Description Usage Arguments Details Value

View source: R/rreadwrite.r

Description

Download data from USGS web API.

Usage

1
2
download_streamflow(f = tempfile(), begin_date, end_date,
  product = "00060", station = c("11467000", "11467200"), ...)

Arguments

f

Destination file.

begin_date

Character start date of date request in format "YYYY-MM-DD".

end_date

Character end date of date request in format "YYYY-MM-DD".

product

Data product, default is streamflow.

station

Data station to download data from. Default is Guerneville. Austin Creek station is second element of default value.

...

Other arguments to pass to download.file().

Details

The NOAA Tides & Currents web API limits data requests to 365 days or less.

Value

The destination file path.


mkoohafkan/rremat documentation built on July 3, 2021, 12:06 p.m.