#' Calculate a cumulative quantile
#'
#' @author Darcy Webber
#' @export
#'
cumulative.quantile <- function(x, probs = 0.5)
{
cquant <- rep(NA, length(x))
for (i in 2:length(x))
{
cquant[i] <- quantile(x[1:i], probs = probs)
}
return(cquant)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.