View source: R/general_small_functions.R
cv | R Documentation |
This function computes the Coefficient of Variation (CV) of the values in x.
cv(x, format = "percent", digits = 2, ...)
x |
Vector or matrix with values. |
format |
If the output should be as "percent" (default) or "decimal". |
digits |
Integer indicating the number of decimal places (see |
... |
Further arguments passed do |
The argument na.rm can be included. Default is FALSE in both
mean()
and sd()
.
If set to TRUE, then missing values are removed before computation proceeds.
The CV of the input values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.