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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -