Skip to content

Commit

Permalink
#143 Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanmontenegro99 committed Aug 14, 2024
1 parent 6e73bd5 commit 67c3862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ geometric_sd <- function(x, method = c(

if (method == "positive") {
stopifnot("`x` includes zero or negative values,
check the geom_mean methods" = any(x <= 0))
check the geom_mean methods" = any(x > 0))
gsd <- stats::sd((log(x)))
} else if (method == "shifted") {
x_shifted <- x + shift
Expand Down

0 comments on commit 67c3862

Please sign in to comment.