powered by
filldown vector with lead value
filldown(x, what = c("", NA))
A vector with the same class as x
a vector
Values to be filled
x=rep(1:5,each=3) x=removeDup(x,NA) filldown(x)
Run the code above in your browser using DataLab