cv | R Documentation |
The function cv
calculates the coefficient of variation from columns
of a matrix. The coefficients of variation are calculated according to the
formula sd(y) / mean(y) * 100
with y
the column values, thus,
the function returns the coefficient of variation in percentage.
cv(x, name = "raw")
x |
|
name |
|
The function returned a named list
(the name is specified by the
name
argument) containing the coefficient of variation of the
columns of x
.
list
x <- matrix(seq_len(10), ncol = 2)
cv(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.