cv | R Documentation |
Calculates the coefficient of variation (CV) for a numeric vector (it excludes NA-s by default).
cv(x, na.rm = TRUE)
x |
A numeric vector. |
na.rm |
Should NA values be removed before calculation? Defaults to TRUE. |
The coefficient of variation of the input vector.
cv(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.