Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Dec 14, 2024
1 parent eccef12 commit b47a3f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/ranktransform.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b47a3f2

Please sign in to comment.