aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-10-10 08:53:30 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-10-10 08:53:30 +0200
commita5e458ecb33ae87e46b2237174a194f6252a97cf (patch)
tree07f96162166021f73d823b61e96e5438e7dfb6d8 /R
parent63df3871a442de4bf47e4d9de1449e7f6ed65b2f (diff)
Finish documentation of set_nd and test it
Diffstat (limited to 'R')
-rw-r--r--R/set_nd.R (renamed from R/process_residues.R)6
1 files changed, 4 insertions, 2 deletions
diff --git a/R/process_residues.R b/R/set_nd.R
index 35d3a4e..5d98940 100644
--- a/R/process_residues.R
+++ b/R/set_nd.R
@@ -16,6 +16,8 @@
#' @param lod Limit of detection (numeric)
#' @param loq Limit of quantification(numeric). Must be specified if the FOCUS rule to
#' stop after the first non-detection is to be applied
+#' @param time_zero Is the first value in the series a time zero value?
+#' @param time_zero_nd_value Which value should we use for non-detects at time zero?
#' @param stop_after_first_nondetect Should we really stop after the first non-detection?
#' @references FOCUS (2014) p. 75, 76, 131, 132
#' @export
@@ -100,8 +102,8 @@ set_nd <- function(r, lod, loq = NA,
#' @describeIn set_nd Set non-detects in residues series according to FOCUS rules
#' @export
-set_nd_focus <- function(res, lod, loq = NA, time_zero = TRUE) {
- result <- set_nd(res, lod, loq = loq, time_zero = time_zero,
+set_nd_focus <- function(r, lod, loq = NA, time_zero = TRUE) {
+ result <- set_nd(r, lod, loq = loq, time_zero = time_zero,
time_zero_nd_value = 0, stop_after_first_nondetect = TRUE)
return(result)
}

Contact - Imprint