diff0 <- function(x, ...) { if (!is.vector(x)) stop("Muste be vetor") return(c(0,diff(x , ...))) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.