powered by
This function calculates the coefficient of variation of a numbers vector.
cv(x = NULL, learn = FALSE, interactive = FALSE)
The coefficient of variation of the vector (for non-interactive mode)
Optional numeric vector (not needed for interactive mode)
Logical, if TRUE shows step-by-step explanation
Logical, if TRUE enables interactive practice mode
data <- c(10,4,5,7,3,4,1) # Simple calculation cv(data) # Learning mode cv(data, learn = TRUE) # Interactive mode if(interactive()){ cv(interactive = TRUE) }
Run the code above in your browser using DataLab