#' @title N days
#' @description Function to count the sample size (number of days) used in the calculation of the indices
#' @template templateMeasureParams
#' @param dates dates
#' @return An integer corresponding to the counts
#' @author J. Bedia, D. San-Martin
#' @export
measure.nDays <- function(indexObs = NULL, indexPrd = NULL, obs, prd, dates) {
length(obs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.