From 6b63ac38be3592346b6d9e9f97ee1ff7119da64b Mon Sep 17 00:00:00 2001 From: Ahmad Jan Date: Wed, 17 Jul 2024 15:30:32 -0400 Subject: [PATCH] bug fix, changed OR to AND otherwise constrain is irrelevant. --- R/custom_function.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/custom_function.R b/R/custom_function.R index f970c5e..704ecf4 100644 --- a/R/custom_function.R +++ b/R/custom_function.R @@ -59,7 +59,7 @@ distribution = function(value, coverage_fraction, breaks = 10, constrain = FALSE x1 = value*coverage_fraction x1 = x1[!is.na(x1)] - if(constrain | length(breaks) > 1){ + if(constrain & length(breaks) > 1){ breaks_tmp = c(breaks[1],breaks[2])