Learn R Programming

RVAideMemoire (version 0.9-35)

cv: Coefficient of variation

Description

Compute the coefficient of variation of a vector.

Usage

cv(x, abs = TRUE, pc = TRUE)

Arguments

x
numeric vector.
abs
logical. If TRUE the coefficient is expressed in absolute value.
pc
logical. If TRUE the coefficient is expressed in percentage.

Details

The function deals with missing values.

Examples

Run this code
cv(rnorm(30))

Run the code above in your browser using DataLab