gcv function

Calculate a geometric coefficient of variation.

Calculate a geometric coefficient of variation.

gcv(x, na.rm = F, neg.rm = F)

Arguments

  • x: A vector.
  • na.rm: Flag for removing NA values (defaults to FALSE).
  • neg.rm: Flag for removing negative or zero values (defaults to FALSE).

Returns

The geometric coefficient of variation of the input vector. If neg.rm is FALSE and values <= 0 are present, NA will be returned.

Examples

## Not run: gcv(myvector) ## End(Not run)

Author(s)

Justin Wilkins, justin.wilkins@occams.com

  • Maintainer: Justin Wilkins
  • License: GPL-2
  • Last published: 2023-02-21