TV1 <- function(x) { # Part of R1Magic by mehmet.suzen@physics.org n <-length(x) return( sum(abs(x[1:n-1]-x[2:n]) ) ) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.