cv: Coefficient of variation

View source: R/cv.R

cvR Documentation

Coefficient of variation

Description

Computes 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.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

Examples

cv(rnorm(30))

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.