Calculate geometric mean of a vector

geomean(x)

Arguments

x

vector to summarize

Author

Samuel P Callisto, PhD

Examples


# Find the geometric mean for a variable in Theoph
geomean(Theoph$Wt)
#> [1] 68.98671

geomean(c(1, 2, 3, 4, 5))
#> [1] 2.605171