I have for example vectors like the following:
a= c(1, NA, NA, 2, 3)
b=c(NA, 1, NA, NA, NA)
c=c(NA, NA, 5, NA, NA)
I wish to merge the three vectors to get
d=c(1,1,5,2,3)
Is there a way of doing this without extensive looping? Many thanks :)