baytrends (version 1.1.0)

convertFqw: 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.

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataCamp Workspace