Learn R Programming

pmxTools (version 1.3)

gcv: Calculate a geometric coefficient of variation.

Description

Calculate a geometric coefficient of variation.

Usage

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

Value

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

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).

Author

Justin Wilkins, justin.wilkins@occams.com

Examples

Run this code
if (FALSE) {
 gcv(myvector)
}

Run the code above in your browser using DataLab