cv: Calculate the coefficient of variation

Description Usage Arguments Value

View source: R/cv.R

Description

Calculate the coefficient of variation a vector of numbers, as SD(x) / mean(x). This function does NOT calculate percent CV - that requires multiplying the returned values by 100.

Usage

1
cv(x, na.rm=FALSE)

Arguments

x

numeric vector or matrix

na.rm

logical. Should missing values be removed?

Value

a single numeric value


mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.