cv: Coefficient of variation

View source: R/cv.R

cvR Documentation

Coefficient of variation

Description

Coefficient of variation

Usage

cv(x, na.rm = TRUE)

CV(x, na.rm = TRUE)

Arguments

x

data a numeric vector, matrix, or data frame.

na.rm

if TRUE (the default) remove NAs before computing the coefficient of variation.

Details

numSummary creates neatly formatted tables of means, standard deviations, coefficients of variation, skewness, kurtosis, and quantiles of numeric variables. CV computes the coefficient of variation.

Value

cv returns the coefficient(s) of variation.

Author(s)

John Fox

Examples

data(Prestige)
print(cv(Prestige[,c("income", "education")]))


RcmdrMisc documentation built on Jan. 8, 2026, 9:06 a.m.