formMWRacc | R Documentation |
Format data quality objective accuracy data
formMWRacc(accdat)
accdat |
input data fram |
This function is used internally within readMWRacc
to format the input data for downstream analysis. The formatting includes:
Minor formatting for units: For conformance to WQX, e.g., ppt is changed to ppth, s.u. is changed to NA in uom
Convert Parameter: All parameters are converted to Simple Parameter
in paramsMWR
as needed
Remove unicode: Remove or replace unicode characters with those that can be used in logical expressions in qcMWRacc
, e.g., replace \geq
with >=
Convert limits to numeric: Convert MDL
and UQL
columns to numeric
A formatted data frame of the data quality objectives file for accuracy
accpth <- system.file('extdata/ExampleDQOAccuracy.xlsx', package = 'MassWateR')
accdat <- readxl::read_excel(accpth, na = c('NA', ''))
accdat <- dplyr::mutate(accdat, dplyr::across(-c(`Value Range`), ~ dplyr::na_if(.x, 'na')))
formMWRacc(accdat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.