From b47a3f2991a264e2ffa2cb1e78ba65e53353955c Mon Sep 17 00:00:00 2001 From: etiennebacher Date: Sat, 14 Dec 2024 15:50:12 +0100 Subject: [PATCH] minor --- R/ranktransform.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/ranktransform.R b/R/ranktransform.R index b3ccce87c..2206a26a5 100644 --- a/R/ranktransform.R +++ b/R/ranktransform.R @@ -91,7 +91,9 @@ ranktransform.numeric <- function(x, if (zeros == "na") { out <- rep(NA, length(x)) ZEROES <- x == 0 - if (any(ZEROES) && verbose) insight::format_warning("Zeros detected. These cannot be sign-rank transformed.") + if (any(ZEROES) && verbose) { + insight::format_warning("Zeros detected. These cannot be sign-rank transformed.") # nolint + } out[!ZEROES] <- sign(x[!ZEROES]) * rank(abs(x[!ZEROES]), ties.method = method, na.last = "keep"