cv: Calculate the coefficient of variation

View source: R/cv.R

cvR Documentation

Calculate the coefficient of variation

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

cv(x, na.rm = FALSE)

Arguments

x

numeric vector or matrix

na.rm

logical. Should missing values be removed?

Value

a single numeric value


BenaroyaResearch/miscHelpers documentation built on April 13, 2025, 9:52 p.m.