The coefficient of variation, i.e., the standard deviation divided by the mean.

cv(x, na.rm = FALSE)

Arguments

x

A numeric object

na.rm

Logical: If TRUE remove the missing values prior to calculation.