#' Convert a cumulative numeric vector to non-cumulative one
#' @param inVec A numeric cumulative vector
#' @return A non-cumulative vector
#' @export
cumulative_to_nonCumulative = function(inVec){
return(
c(inVec[1],inVec[2:length(inVec)]-inVec[1:length(inVec)-1])
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.