powered by
Fill empty elements of a vector with the last non-empty previous
rellenar(x)
The vector to be filled
The vector filled.
# NOT RUN { ##Example a1=c(2,NA,NA,3,NA,4,5,NA,NA) rellenar(a1) # }
Run the code above in your browser using DataLab