#' @title Sum
#' @description Function to compute the sum 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 sum of the input.
#' @export
index.sum <- function(ts) {
sum(ts, na.rm = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.