Learn R Programming

dataRetrieval (version 2.7.11)

Retrieval Functions for USGS and EPA Hydrologic and Water Quality Data

Description

Collection of functions to help retrieve U.S. Geological Survey (USGS) and U.S. Environmental Protection Agency (EPA) water quality and hydrology data from web services. USGS web services are discovered from National Water Information System (NWIS) and . Both EPA and USGS water quality data are obtained from the Water Quality Portal .

Copy Link

Version

Install

install.packages('dataRetrieval')

Monthly Downloads

4,309

Version

2.7.11

License

CC0

Maintainer

Last Published

February 18th, 2022

Functions in dataRetrieval (2.7.11)

constructUseURL

Construct URL for NWIS water use data service
countyCdLookup

County code look up
addWaterYear

add a water year column
convertLists

convert variables in dots to usable format
default_ua

Create user agent
findNLDI

R Client for the Network Linked Data Index
readNGWMNsites

get_nldi_sources

Get current NLDI offerings
calcWaterYear

Extract WY from a date
has_internet_2

has_internet2
importNGWMN

Function to return data from the National Ground Water Monitoring Network waterML2 format
getQuerySummary

getting header information from a WQP query
readNWISsite

USGS Site File Data Retrieval
importWaterML2

Parse the WaterML2 timeseries portion of a waterML2 file
readNWISstat

Site statistics retrieval from USGS (NWIS)
getWebServiceData

Function to return data from web services
is_dataRetrieval_user

Is this a dataRetrieval user
pCodeToName

Data to convert USGS parameter code to characteristic names
parameterCdFile

List of USGS parameter codes
importWQP

Basic Water Quality Portal Data parser
importWaterML1

Function to return data from the NWISWeb WaterML1.1 service
readNWISdata

General Data Import from NWIS
readNWISuse

Water use data retrieval from USGS (NWIS)
importRDB1

Function to return data from the NWIS RDB 1.0 format
readNWISuv

Instantaneous value data retrieval from USGS (NWIS)
stateCd

US State Code Lookup Table
readNWISdots

Format and organize NWIS arguments that are passed in as ....
readNWISdv

Daily Value USGS NWIS Data Retrieval
readNWISrating

Rating table for an active USGS streamgage retrieval
readNWISqw

Raw Data Import for USGS NWIS QW Data
whatNWISdata

USGS data availability
setAccess

Set data endpoint
renameNWISColumns

renameColumns
readNGWMNlevels

readNWISgwl

Groundwater level measurements retrieval from USGS (NWIS)
readNGWMNdata

whatNWISsites

Site Data Import from NWIS
readNWISmeas

Surface-water measurement data retrieval from USGS (NWIS)
zeroPad

Pad string with leading zeros
readNWISpeak

Peak flow data from USGS (NWIS)
stateCdLookup

State code look up
readNWISpCode

USGS Parameter Data Retrieval
readWQPdata

General Data Import from Water Quality Portal
readWQPdots

Format and organize WQP arguments that are passed in as ....
readWQPsummary

Summary of Data Available from Water Quality Portal
readWQPqw

Raw Data Import for Water Quality Portal
whatWQPsamples

Site Data Import from Water Quality Portal
whatWQPdata

Data Available from Water Quality Portal
checkWQPdates

Date Check for Water Quality Portal
countyCd

US County Code Lookup Table
constructNWISURL

Construct NWIS url for data retrieval
dataRetrieval

Retrieval functions for USGS and EPA data
constructWQPURL

Construct WQP url for data retrieval