baytrends (version 1.1.0)

importNWISqw: Water-Quality Data

Description

Imports discrete water-quality sample data from NWISweb.

Usage

importNWISqw(sites, params = "All", begin.date = "", end.date = "",
  keep = NULL, use.pnames = FALSE)

Arguments

sites

a vector of the USGS station identifiers.

params

A character string contains the name of a group of parameter codes, or a vector of parameter codes. See Details.

begin.date

the earliest date for data, must be a character with the format "YYYY-mm-dd."

end.date

the latest date for data, must be a character with the format "YYYY-mm-dd."

keep

a character vector for any additional columns to retain from the retrieved data.

use.pnames

create colummn names based on pcode (like P00000)? Default is to generate more English-like names.

Value

A data frame of the water-quality data of class "qw" organized by sample. Column names for the water-quality constituents are generated automatically, but can be set by the user, see makeColNames.

Details

Valid parameter code groups are "All," or group codes:

Code Description
INF Information
PHY Physical
INM Inorganics, Major, Metals (major cations)
INN Inorganics, Major, Non-metals (major anions)
NUT Nutrient
MBI Microbiological
BIO Biological
IMN Inorganics, Minor, Non-metals
IMM Inorganics, Minor, Metals
TOX Toxicity
OPE Organics, pesticide
OPC Organics, PCBs
OOT Organics, other
RAD Radiochemical
SED Sediment
POP Population/community

References

Lorenz, D.L., 2014, smwrQW OFR. See information about discrete samples at https://nwis.waterdata.usgs.gov/usa/nwis/qw.

See Also

readNWISqw

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
importNWISqw("05330000", "00608") # Ammonia samples from the Minnesota River at Jordan.
Empty <- importNWISqw('05330000',c('00400','00403'),begin.date='2008-01-01')
# }

Run the code above in your browser using DataLab