Learn R Programming

dataRetrieval (version 1.4.0)

getNWISPcodeInfo: USGS Parameter Data Retrieval

Description

Imports data from NWIS about meaured parameter based on user-supplied parameter code. This function gets the data from here: http://nwis.waterdata.usgs.gov/nwis/pmcodes

Usage

getNWISPcodeInfo(parameterCd, interactive = TRUE)

Arguments

parameterCd

vector of USGS parameter codes. This is usually an 5 digit number.

interactive

logical Option for interactive mode. If true, there is user interaction for error handling and data checks.

Value

parameterData dataframe with all information from the USGS about the particular parameter (usually code, name, short name, units, and CAS registry numbers)

Examples

Run this code
# NOT RUN {
# These examples require an internet connection to run
paramINFO <- getNWISPcodeInfo(c('01075','00060','00931'))
# }

Run the code above in your browser using DataLab