convertFqw: Water-Quality Data

View source: R/convertFqw.R

convertFqwR Documentation

Water-Quality Data

Description

Converts information from data of class "qw" to separate columns representing the data in the "qw" columns. This can facilitate transfer to other systems or editing the meta data in a "qw" column. Uses as.data.frame(object of class qw, expand=TRUE) to convert each "qw" column.

Usage

convertFqw(data, columns = "")

Arguments

data

a data frame that contains limited sample information.

columns

a character vector listing the names of the columns to convert. If a single empty character string, the default, then convert all "qw" columns.

Value

A data frame of the converted water-quality data and all other columns in the original dataset.

Note

This function can be used in conjunction with convert2qw to update or modify reporting levels or inspect the details of the meta data.

References

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

See Also

readNWISqw, convert2qw

Examples

# Make a dummy partial dataset
tmp.dum <- data.frame(sta=c("A", "B"),
 Val=c(1, 1.2),
 Val.rmk=c("<", ""),
 Val.dl=c(1, 1), stringsAsFactors=FALSE)
tmp.qw <- convert2qw(tmp.dum, scheme="partial")
# Expand the result
convertFqw(tmp.qw)

USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.