You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please include a brief description of the problem with a code example:
The geometric_mean function is not subsetting the positive values from the vector, so when it checks the values inside it arise an error instead of ignoring the non positive values
if (method=="positive") {
stopifnot("`x` includes zero or negative values, check the geom_mean methods"= all(x>0))
gm<- exp(mean(log(x)))
The text was updated successfully, but these errors were encountered:
juan-umana
changed the title
Bug in geometric_mean function with positive method
Bug geometric_mean function
Nov 8, 2024
Please place an "x" in all the boxes that apply
Please include a brief description of the problem with a code example:
The
geometric_mean
function is not subsetting the positive values from the vector, so when it checks the values inside it arise an error instead of ignoring the non positive valuesThe text was updated successfully, but these errors were encountered: