#' @title Skewness
#' @description Function to compute the skewness index.
#' @author Ole Roessler, J. Bedia, D. San-MartÃn, S. Herrera
#' @param ts A vector containing the data
#' @return A float number corresponding to the skewness index.
#' @export
index.skew <- function(ts) {
mean.x <- index.mean(ts)
std.x <- index.sd(ts)
auxObj <- (ts - mean.x) / std.x
index.mean(auxObj ^ 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.