No, but there are a few people who have written one, such as here.
Another possibility is to use this:
exp(mean(log(x)))
More Related Contents:
- In R, how to turn characters (grades) into a number and put in a separate column
- How to find the statistical mode?
- Workflow for statistical analysis and report writing
- How to make execution pause, sleep, wait for X seconds in R?
- R tick data : merging date and time into a single object
- Why am I getting “algorithm did not converge” and “fitted prob numerically 0 or 1” warnings with glm?
- How to assign the result of the previous expression to a variable?
- Linear Regression loop for each independent variable individually against dependent
- Function to calculate R2 (R-squared) in R
- Changing whisker definition in geom_boxplot
- Using cbind on an arbitrarily long list of objects
- Plotting a 3D surface plot with contour map overlay, using R
- How to generate distributions given, mean, SD, skew and kurtosis in R?
- Exact number of bins in Histogram in R
- Interpretation of ordered and non-ordered factors, vs. numerical predictors in model summary
- Standard Deviation in R Seems to be Returning the Wrong Answer – Am I Doing Something Wrong?
- Stepwise regression using p-values to drop variables with nonsignificant p-values
- predict.lm() in a loop. warning: prediction from a rank-deficient fit may be misleading
- What’s the difference between identical(x, y) and isTRUE(all.equal(x, y))?
- Add error bars to show standard deviation on a plot in R
- Calculating percentile of dataset column
- How to shade a region under a curve using ggplot2
- Extract file extension from file path
- Efficient calculation of matrix cumulative standard deviation in r
- How to use the ‘sweep’ function
- R optimization with equality and inequality constraints
- What does the period mean when used with ~ (in a formula)?
- Difference between r-base and r-recommended packages
- Sum every nth points
- Generate paired stacked bar charts in ggplot (using position_dodge only on some variables)