coefficent_of_variation: Coefficient of variation

View source: R/coefficient_of_variation.R

coefficent_of_variationR Documentation

Coefficient of variation

Description

Calculates the (population or sample) coefficient of variation of a given numeric vector

Usage

coefficent_of_variation(vector, pop_or_sample = "pop")

Arguments

vector

a numeric vector

pop_or_sample

should coefficient of variation be calculated for a "population" or a "sample"?

Value

a numeric value

Examples

coefficent_of_variation(1:4, pop_or_sample = "sample")
coefficent_of_variation(1:4, pop_or_sample = "pop")

jinkim3/kim documentation built on Feb. 26, 2025, 10:03 a.m.