censor_data: Censor Data

View source: R/censor_data.R

censor_dataR Documentation

Censor Data

Description

This function deals with censored data as described in the white paper "Use of Censored Data" from 5/11/2018 When the QL > criteria value, 1/2 the value of the criteria is substituted for any sample reported as censored When the QL < Criteria value, 1/2 the QL value will be substituted Samples greater than the Max QL, use QL value Input is a dataframe Adds a column named Result_cen for the value to use

Usage

censor_data(
  df,
  result_col = IRResultNWQSunit,
  qualifier_col = Result_Operator,
  criteria_col = crit
)

Arguments

df

dataframe to modify.

result_col

column in dataframe with the result to be compared against. Defaults to IRResultNWQSunit

qualifier_col

column in dataframe for the qualifier. Defaults to Result_Operator

criteria_col

column in dataframe with criteria value. Defaults to crit


TravisPritchardODEQ/IRLibrary documentation built on April 15, 2024, 9:03 a.m.