I have a vector, which contains several NaNs. For example,
d=c(NaN,2,3,4,4,2,4,7,NaN,NaN,8,5,6,NaN)
I would like to do some expolation to replace NaNs. The difficulty for me is that I do not know how many NaNs I have and where they are.
Thank you very much.