Re: [R] Lags and Differences of zoo Objects

2010-07-30 Thread Gabor Grothendieck
On Sat, Jul 31, 2010 at 1:44 AM, pdb wrote: > > Thanks for the response. > > I can figure out the 'lag' parameter to the function, but I dont understand > the 'differences' parameter. > > differences - an integer indicating the order of the difference > > What does the 'order of the difference' me

Re: [R] Lags and Differences of zoo Objects

2010-07-30 Thread pdb
Thanks for the response. I can figure out the 'lag' parameter to the function, but I dont understand the 'differences' parameter. differences - an integer indicating the order of the difference What does the 'order of the difference' mean in English? How are these numbers calculated? > x <- i

Re: [R] Lags and Differences of zoo Objects

2010-07-30 Thread Gabor Grothendieck
On Sat, Jul 31, 2010 at 12:07 AM, pdb wrote: > > Hi, > > I'm struggling to understand the documentation. > >  ?lag.zoo > > > x - a "zoo" object. > k, lag - the number of lags (in units of observations). Note the sign of k > behaves as in lag. > differences - an integer indicating the order of the

[R] Lags and Differences of zoo Objects

2010-07-30 Thread pdb
Hi, I'm struggling to understand the documentation. ?lag.zoo x - a "zoo" object. k, lag - the number of lags (in units of observations). Note the sign of k behaves as in lag. differences - an integer indicating the order of the difference. What does the above line actually mean? I've trie