From 3cf722094eaf1c07f8a245bea38a4abbb8bde195 Mon Sep 17 00:00:00 2001 From: DavisVaughan Date: Thu, 15 Dec 2022 15:33:56 -0500 Subject: [PATCH] There is no argument named `n` --- R/peak_finding.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/peak_finding.R b/R/peak_finding.R index 67b3fb7..5b2f453 100644 --- a/R/peak_finding.R +++ b/R/peak_finding.R @@ -127,7 +127,7 @@ find_strongest_peaks <- function(df, # plot(curr.plot.window$t, curr.plot.window$force, type="l") curr.specimen <- curr.plot.window %>% - slice(n=1) %>% + slice(1) %>% pull(specimen) threshold <- initial.threshold * max(curr.plot.window$force)