cv: Coefficient of variation

Description Usage Arguments Value Examples

Description

Coefficient of variation

Usage

1
cv(x, na.rm = FALSE)

Arguments

x

a numeric vector or an R object which is coercible to one by as.double(x)

na.rm

logical. Should missing values be removed?

Value

the coeficient of variation

Examples

1
2
3
foo <- rnorm(100,10,10)
sd(foo)/mean(foo)
cv(foo)

RoyChristian/startR documentation built on May 9, 2019, 10:34 a.m.