Displaying 1 result from an estimated 1 matches for "lag2diff2".
Did you mean:
lag1diff2
2010 Jul 31
1
Lags and Differences of zoo Objects
...x <- iris
x$Species = NULL
x$Petal.Width = NULL
x$Sepal.Width = NULL
x$Sepal.Length = NULL
x <- zoo(x)
x <-
merge(orig = x
,lag1diff2 = diff(x, lag = 1, differences = 2, arithmetic = TRUE, na.pad =
TRUE)
,lag2diff1 = diff(x, lag = 2, differences = 1, arithmetic = TRUE, na.pad =
TRUE)
,lag2diff2 = diff(x, lag = 2, differences = 2, arithmetic = TRUE, na.pad =
TRUE)
)
head(x)
--
View this message in context: http://r.789695.n4.nabble.com/Lags-and-Differences-of-zoo-Objects-tp2308666p2308666.html
Sent from the R help mailing list archive at Nabble.com.