View source: R/Censored_Data.R
Censored_data | R Documentation |
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 Column names should be strings.
Censored_data(df, results = "Result_Numeric",
results_qualifier = "Result_Operator", criteria = "criteria")
df |
dataframe to modify. |
results |
name of column in dataframe with the result to be compared against. Defaults to 'Result_Numeric'. |
results_qualifier |
name of column in dataframe for the qualifier. Defaults to 'Result_Operator'. |
criteria |
name of column in dataframe with applicable criteria value. In the case of parameters with multiple applicable criteria (i.e. pH) the criteria should be lowest criteria. Defaults to 'criteria'. |
dataframe with additional "Results_cen" column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.