
Last chance! 50% off unlimited learning
Sale ends in
diff
.diffinv(x, ...)# S3 method for default
diffinv(x, lag = 1, differences = 1, xi, …)
# S3 method for ts
diffinv(x, lag = 1, differences = 1, xi, …)
"ts"
method) representing the discrete integral of x
.diffinv
is a generic function with methods for class "ts"
and default
for vectors and matrices. Missing values are not handled.diff
s <- 1:10
d <- diff(s)
diffinv(d, xi = 1)
Run the code above in your browser using DataLab