Description Usage Arguments Value Examples

View source: R/geometric_mean.R

Function calculating the geometric mean of numeric vectors

1 | ```
geometric_mean(x, na.rm = FALSE)
``` |

`x` |
A numeric vector |

`na.rm` |
Should NA values be ignored |

The geometric mean.

1 2 3 | ```
geometric_mean(c(1,3, 9))
geometric_mean(c(1,3, NA))
geometric_mean(c(1,3, NA), na.rm = TRUE)
``` |

mkin documentation built on Sept. 21, 2018, 6:21 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.