R/utils.R
integral.Rd
Take the integral of a vector v by computing the inverse of the lagged differences (diff function).
diff
integral(v)
A numeric vector
The integral of v as a numeric vector.
v