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.
convertFqw(data, columns = "")
a data frame that contains limited sample information.
a character vector listing the names of the columns to convert. If a single empty character string, the default, then convert all "qw" columns.
A data frame of the converted water-quality data and all other columns in the original dataset.
Lorenz, D.L., 2014, USGSwsQW OFR. See information about discrete samples at https://nwis.waterdata.usgs.gov/usa/nwis/qw.
# 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 DataLab