dql_precision: Assign precision Data Quality Levels (DQLs) to continuous...

View source: R/dql_precision.R

dql_precisionR Documentation

Assign precision Data Quality Levels (DQLs) to continuous data

Description

This function assigns a precision data quality level to parameters measured in the field using replicate measurements such as field duplicates, field audits, or split samples. The data quality levels are assigned following DEQ’s Data Quality Matrix (DEQ, 2013). The data quality matrix defines the accuracy and precision criteria for equipment calibration and field audits respectively respectively.

Usage

dql_precision(audits, results, deployment, audits_only = FALSE)

Arguments

audits

Data frame of the audit data generated using contin_import.

results

Data frame of the results data generated using contin_import.

deployment

Data frame of the deployment data generated using contin_import.

audits_only

Boolean to indicate if the audit data frame should be returned with new columns for the audit sample DQL, corresponding result value, result units, absolute difference between the result and audit. Default is FALSE.

Details

use dql_accuracy to assign the data quality level using calibration verifications and/or pre- and post-deployment checks.

Inputs into this function must retrieved from Oregon DEQ's continuous data submission template xlsx file v2.03. Use contin_import to get the list that hold the data frames used for this function's inputs.

Oregon Department of Environmental Quality (DEQ). 2013. "Data validation criteria for water quality parameters measured in the field. DEQ04-LAB-0003-QAG Version5.0." http://www.oregon.gov/deq/FilterDocs/DataQualMatrix.pdf

Value

Vector of the precision DQL indexed in the same order as the result input. Or if audit_only=TRUE the audit data frame with the precision DQL for each audit.


DEQrmichie/odeqcdr documentation built on Feb. 15, 2025, 10:01 a.m.