aboutsummaryrefslogtreecommitdiff
path: root/man/geometric_mean.Rd
blob: faad666f335c385d3e0f5c1fe88710586178d0b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\name{geometric_mean}
\Rdversion{1.1}
\alias{geometric_mean}
\title{ Calculate the geometric mean }
\description{
  Function calculating the geometric mean of numeric vectors
}
\usage{
  geometric_mean(x, na.rm = FALSE)
}
\arguments{
  \item{x}{ A numeric vector }
  \item{na.rm}{ Should NA values be ignored }
}
\value{
  The geometric mean.
}
\examples{
  geometric_mean(c(1,3, 9))
  geometric_mean(c(1,3, NA))
  geometric_mean(c(1,3, NA), na.rm = TRUE)
}
\keyword{ manip }

Contact - Imprint