cv: Coefficient of variation

Description Usage Arguments Value References

View source: R/cv.R

Description

Compute the coefficient of variation of a numeric vector x, defined as the ratio between the standard deviation and the mean.

Usage

1
cv(x, na_rm = FALSE, ...)

Arguments

x

numeric. A numeric vector.

na_rm

logical. Should missing values be removed before computing the coefficient of variation?

...

Additional arguments to be passed to mean().

Value

A numeric value, the coefficient of variation.

References

https://en.wikipedia.org/wiki/Coefficient_of_variation.


statip documentation built on Nov. 18, 2019, 1:06 a.m.