calc_cv: Coefficient of variation computation

View source: R/calc_cv.r

calc_cvR Documentation

Coefficient of variation computation

Description

Computation of the coefficient of variation (CV).

Usage

calc_cv(x, as_perc = FALSE)

Arguments

x

A numeric vector

as_perc

A boolean value, if TRUE the function will multiply the CV by 100 (default = FALSE)

Value

A numeric single value with the computed CV.

Examples


x <- rnorm(100,1)

calc_cv(x)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.