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

python - Getting ESC characters and non-printables from UDP socket / buffer -

string - Using python and postgres, variables within execute function? -