Re: [R] Differencing between 2 previous values

2014-07-28 Thread Pavneet Arora
Thank you for that simple answer. Really appreciate it. From: PIKAL Petr To: Pavneet Arora/UK/RoyalSun@RoyalSun, "r-help@r-project.org" Date: 28/07/2014 10:26 Subject: RE: [R] Differencing between 2 previous values Hi see in line > -Original Message--

Re: [R] Differencing between 2 previous values

2014-07-28 Thread peter dalgaard
On 28 Jul 2014, at 11:08 , Pavneet Arora wrote: > Hello All, > > I am trying to do a simple thing of calculating the absolute difference > between 2 previous values. Since my original data consists of 30 rows, > this column where I am storing my absolute difference values only consists > of

Re: [R] Differencing between 2 previous values

2014-07-28 Thread PIKAL Petr
Hi see in line > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Pavneet Arora > Sent: Monday, July 28, 2014 11:08 AM > To: r-help@r-project.org > Subject: [R] Differencing between 2 previous values >

[R] Differencing between 2 previous values

2014-07-28 Thread Pavneet Arora
Hello All, I am trying to do a simple thing of calculating the absolute difference between 2 previous values. Since my original data consists of 30 rows, this column where I am storing my absolute difference values only consists of 29 rows (called the ?differ?)! And I am having troubling cbind