Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread John McKown
On Mon, Aug 4, 2014 at 9:01 AM, Florian Denzinger wrote: > Hi John, > > I only meant the subsetting of the dataframe by using the zoo function > suggested by Gerrit! Not a new solution/function, I am afraid. > Regards, > F I take it that means you _don't_ have a solution. If not, or even if you

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread Florian Denzinger
Hi John, I only meant the subsetting of the dataframe by using the zoo function suggested by Gerrit! Not a new solution/function, I am afraid. Regards, F Am 04.08.2014 um 14:13 schrieb John McKown : > On Mon, Aug 4, 2014 at 6:34 AM, Florian Denzinger > wrote: >> Shortly after answering to you

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread John McKown
On Mon, Aug 4, 2014 at 6:34 AM, Florian Denzinger wrote: > Shortly after answering to your first email, I got to solution. Sorry for the > unnecessary noise. > > Regards, > F > Florian, I'd be interested in seeing your solution. I need as many techniques in my "bag of tricks" as I can find. --

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread Florian Denzinger
Shortly after answering to your first email, I got to solution. Sorry for the unnecessary noise. Regards, F Am 04.08.2014 um 12:00 schrieb Gerrit Eichner : > On Mon, 4 Aug 2014, Florian Denzinger wrote: > >> this is great, thanks! >> >> one problem I noticed though is that it fills all NA va

Re: [R] Filling in missing values in a column based on previousandfollowingvalues

2014-08-04 Thread Gerrit Eichner
On Mon, 4 Aug 2014, Florian Denzinger wrote: this is great, thanks! one problem I noticed though is that it fills all NA values in every column, is it possible to specify only one column, e.g. only ID (I have NA values in another column I want to keep) Yes, of course. Just access only one c