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

2014-08-04 Thread Florian Denzinger
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) Kind regards, Florian Am 04.08.2014 um 11:31 schrieb Gerrit Eichner : > Hello, F

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

2014-08-04 Thread Gerrit Eichner
Hello, Florian, function na.locf() from package zoo mightdo what you want. Hth -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212 gerrit.eich...@math.uni-giessen.de Justus-Liebig-University Gie