Search notes:

R function: diff

x <- c(2, 5, 10, 11, 9, 13)
diff(x)
# [1]  3  5  1 -2  4
Github repository about-r, path: /functions/diff.R

See also

Index to (some) R functions

Index