powered by
Calculate differences
diff0(x)
input vector
vector of differences
Input vector length = output vector length
# NOT RUN { x <- 1:10 diff0(x) # }
Run the code above in your browser using DataLab