# ------------------------- Support functions --------------------------------
rollavg <- function(x, n){
.Call("rollavg", x, n, PACKAGE = "densPred" )
}
pow2 <- function(x)x^2
# -----------------------------------------------------------------------------
# ------- Functions for aggregating data across time --------
aggsum <- function(x)sum(x)
aggprod <- function(x)prod(1+x)-1
# -----------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.