cv: cv

View source: R/CodeAndRoll2.R

cvR Documentation

cv

Description

Calculates the coefficient of variation (CV) for a numeric vector (it excludes NA-s by default).

Usage

cv(x, na.rm = TRUE)

Arguments

x

A numeric vector.

na.rm

Should NA values be removed before calculation? Defaults to TRUE.

Value

The coefficient of variation of the input vector.

Examples

cv(1:5)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.