Re: [R] fill data forward in data frame.

2012-03-01 Thread Ben quant
That is great! Thank you very much. Ben On Thu, Mar 1, 2012 at 2:57 PM, Petr Savicky wrote: > On Thu, Mar 01, 2012 at 02:31:01PM -0700, Ben quant wrote: > > Hello, > > > > My direct desire is a good (fast) way to fill values forward until there > is > > another value then fill that value foward

Re: [R] fill data forward in data frame.

2012-03-01 Thread Petr Savicky
On Thu, Mar 01, 2012 at 02:31:01PM -0700, Ben quant wrote: > Hello, > > My direct desire is a good (fast) way to fill values forward until there is > another value then fill that value foward in the data xx (at the bottom of > this email). For example, from row 1 to row 45 should be NA (no change

[R] fill data forward in data frame.

2012-03-01 Thread Ben quant
Hello, My direct desire is a good (fast) way to fill values forward until there is another value then fill that value foward in the data xx (at the bottom of this email). For example, from row 1 to row 45 should be NA (no change), but from row 46 row 136 the value should be 12649, and from row 13