DOI-USGS / dataRetrieval

This R package is designed to obtain USGS or EPA water quality sample data, streamflow data, and metadata directly from web services.
https://doi-usgs.github.io/dataRetrieval/
Other
256 stars 85 forks source link

Syntax fix to cell "getSiteExtended" in dataRetrieval.Rmd #635

Closed elbeejay closed 1 year ago

elbeejay commented 1 year ago

Small PR to make a syntax fix to the vignette associated with dataRetrieval.Rmd.

The cell “getSiteExtended” is currently written as:

# Continuing from the previous example:
# This pulls out just the daily, mean data:

dailyDataAvailable <- whatNWISdata(siteNumbers,
                    service="dv", statCd="00003")

And produces the following error:

Error: All components of query must be named

Instead, the siteNumber keyword parameter should be supplied to the function call:

# Continuing from the previous example:
# This pulls out just the daily, mean data:

dailyDataAvailable <- whatNWISdata(siteNumber=siteNumbers,
                    service="dv", statCd="00003")

This fixes the problem and is the only proposed change in this PR.