https://github.com/cran/robCompositions
Tip revision: 6452e1741dd003b918a2909ee567758a96e3589e authored by Matthias Templ on 20 September 2021, 13:20:05 UTC
version 2.3.1
version 2.3.1
Tip revision: 6452e17
gm_backup.R
gm_backup <- function (x) {
if(!is.numeric(x)) stop("x has to be a vector of class numeric")
if (any(na.omit(x == 0)))
0
else exp(mean(log(unclass(x)[is.finite(x) & x > 0])))
}