Learn R Programming

kim (version 0.5.3)

coefficent_of_variation: 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")

Value

a numeric value

Arguments

vector

a numeric vector

pop_or_sample

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

Examples

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

Run the code above in your browser using DataLab