Learn R Programming

⚠️There's a newer version (2.7.11) of this package.Take me there.

dataRetrieval (version 2.7.4)

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,562

Version

2.7.4

License

CC0

Maintainer

Laura DeCicco

Last Published

March 25th, 2019

Functions in dataRetrieval (2.7.4)

readNGWMNdata

readNGWMNlevels

readNWISmeas

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

readNWISuse

Water use data retrieval from USGS (NWIS)
readNWISstat

Site statistics retrieval from USGS (NWIS)
readNWISdv

Daily Value USGS NWIS Data Retrieval
stateCdLookup

State code look up
getWebServiceData

Function to return data from web services
readNWISpeak

Peak flow data from USGS (NWIS)
readNWISrating

Rating table for an active USGS streamgage retrieval
readNWISdots

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

Instantaneous value data retrieval from USGS (NWIS)
readNWISdata

General Data Import from NWIS
zeroPad

Pad string with leading zeros
stateCd

US State Code Lookup Table
readNWISqw

Raw Data Import for USGS NWIS QW Data
readNWISgwl

Groundwater level measurements retrieval from USGS (NWIS)
readNWISsite

USGS Site File Data Retrieval
readWQPdata

General Data Import from Water Quality Portal
whatNWISsites

Site Data Import from NWIS
readNWISpCode

USGS Parameter Data Retrieval
whatNWISdata

USGS data availability
readWQPdots

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

Set data endpoint
whatWQPmetrics

Activity Metrics from Water Quality Portal
whatWQPdata

Data Available from Water Quality Portal
whatWQPsamples

Sampling Activity Data Import from Water Quality Portal
readWQPqw

Raw Data Import for Water Quality Portal
renameNWISColumns

renameColumns
whatWQPsites

Site Data Import from Water Quality Portal
calcWaterYear

Extract WY from a date
countyCdLookup

County code look up
convertLists

convert variables in dots to usable format
dataRetrieval

Retrieval functions for USGS and EPA data
checkWQPdates

Date Check for Water Quality Portal
constructNWISURL

Construct NWIS url for data retrieval
constructUseURL

Construct URL for NWIS water use data service
addWaterYear

add a water year column
countyCd

US County Code Lookup Table
getQuerySummary

getting header information from a WQP query
constructWQPURL

Construct WQP url for data retrieval
importNGWMN

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

Parse the WaterML2 timeseries portion of a waterML2 file
parameterCdFile

List of USGS parameter codes
pCodeToName

Data to convert USGS parameter code to characteristic names
importWaterML1

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

Basic Water Quality Portal Data parser
importRDB1

Function to return data from the NWIS RDB 1.0 format