powered by
geometric.mean(x,na.rm=TRUE)
harmonic.mean
mean
x <- seq(1,5) x2 <- x^2 x2[2] <- NA X <- data.frame(x,x2) geometric.mean(x) geometric.mean(x2) geometric.mean(X) geometric.mean(X,na.rm=FALSE)
Run the code above in your browser using DataLab