Skip to content
Prev 342819 / 398506 Next

Filling in missing values in a column based on previousandfollowingvalues

On Mon, 4 Aug 2014, Florian Denzinger wrote:

            
Yes, of course. Just access only one column, not all: Something like

yourdataframe$ID <- na.locf( yourdataframe$ID)

should replace the ID-column with the modified version you want.

Regards  --  Gerrit