Skip to content

Commit

Permalink
fix geom mean again
Browse files Browse the repository at this point in the history
  • Loading branch information
Karin Schork committed Jan 5, 2024
1 parent 3494460 commit da0f899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helpers-small_helper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ geom_mean <- function(x,useprod = FALSE) {
if (useprod) {
return(prod(x)^(1/n))
} else {
return(exp(mean(log(x))/n))
return(exp(mean(log(x))))
}
}

Expand Down

0 comments on commit da0f899

Please sign in to comment.