checkDistance: Check Distance Function to check the distance between pairs

View source: R/DOC_QA_QC_funs.R

checkDistanceR Documentation

Check Distance Function to check the distance between pairs

Description

Check Distance Function to check the distance between pairs

Usage

checkDistance(df, threshold = 1)

Arguments

df

Data frame with (at least) columns "DOC" and "sampleID"; otherwise this will throw an error.

threshold

Specifies the threshold value for classifying a pair of DOC replicates as "far" apart or not. Default is 1: e.g. points are "far" if the higher one is more than 100% greater than the lower one. If you set a threshold over 2, the function will warn you that this threshold may be unreasonable/not helpful, but it won't stop you from setting the threshold to whatever you want.

Value

A data frame containing sampleID's and the result of the near/far check, only.


MFEh2o/MFEUtilities documentation built on May 6, 2023, 1:33 p.m.