Replacing NAs with latest non-NA value Replacing NAs with latest non-NA value r r