missing data - How do I instruct R to replace the NA value with the value/character in the preceeding row? -
this question has answer here:
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
Post a Comment