Learn R Programming

descriptr (version 0.5.2)

ds_cvar: Coefficient of Variation

Description

Compute the coefficient of variation

Usage

ds_cvar(x, data = NULL, na.rm = FALSE)

Arguments

x

a numeric vector

data

a data.frame or tibble

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Examples

Run this code
# NOT RUN {
ds_cvar(mtcars$mpg)
ds_cvar(mpg, mtcars)
# }

Run the code above in your browser using DataLab