#' Computes the coefficient of variation.
#' @param x numeric vector. Set of values for which the coefficient of variation should be computed.
#' @return A coefficient of variation for the numeric vector
#' @importFrom stats sd
#' @export
cvar <- function(x) sd(x, na.rm = T) / mean(x, na.rm = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.