Take the integral of a vector v by computing the inverse of the lagged differences (diff function).

integral(v)

Arguments

v

A numeric vector

Value

The integral of v as a numeric vector.