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


mjdufort/miscHelpers documentation built on Jan. 18, 2025, 11:55 a.m.