Processes water quality data. This function looks at detection limit and detection conditions to determine if a value is left censored or not. Censored values are given the qualifier "<". The dataframe is also converted from a long to wide format.
Value
data dataframe with first column dateTime, and at least one qualifier and value columns (subsequent qualifier/value columns could follow depending on the number of parameter codes)
Examples
# \donttest{
rawWQP <- dataRetrieval::readWQPdata(siteid = '21FLEECO_WQX-IMPRGR80',
characteristicName = 'Phosphorus',
service = "Result",
dataProfile = "resultPhysChem")
#> GET: https://www.waterqualitydata.us/data/Result/search?siteid=21FLEECO_WQX-IMPRGR80&characteristicName=Phosphorus&dataProfile=resultPhysChem&mimeType=csv&count=no
#> Error in httr2::req_perform(obs_url): HTTP 502 Bad Gateway.
Sample2 <- processQWData(rawWQP)
#> Error: object 'rawWQP' not found
# }
