make.instantaneous <- function(cumulate.data){
firstdiff <- function(x) {
shifted <- c(0,x[1:(length(x)-1)])
x-shifted
}
return(firstdiff(cumulate.data))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.