The image shows a single individual in four periods of time, where the variable "anedhijos" shows the years of education of that individual and the variable "anedpadres" shows the years of education of that individual's father. As can be seen in these two variables, it is not logical that in one quarter the individual has zero years of education and in the following quarter he has eight years of education. This is an error of the data, and what I'm looking for is some way that with a function you can make these zeros correct and put the number that corresponds in all periods, that is, for example,
that in all the quarters for the variable "anedhijos" appear the number 8. Can it be done? Thanks.

