missing data - How do I instruct R to replace the NA value with the value/character in the preceeding row? -


basically, there has been data entry mistake in data. it's record of patients data collected , recorded twice same patient (assume no time series complexity). however, in process, gender, age , patient's id not replicated second entry of his/her medical record. result, half dataset has "na" in above mentioned variables. need code pastes prior entry in these variables in place of na values. lot.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -