Learn R Programming

LDLcalc (version 2.1)

CV: Calculate the CV of a set of values.

Description

This function calculates the coefficient of variation (CV) of the values supplied.

Usage

CV(Vec, roundDigits = 2)

Value

Returns the value of the CV.

Arguments

Vec

The vector of values for which to calculate the CV.

roundDigits

Number of digits to round the result to (default=2).

Examples

Run this code
CV = CV(sampleA$LDL)

Run the code above in your browser using DataLab