R/fill.R
filldown.Rd
filldown vector with lead value
filldown(x, what = c("", NA))
a vector
Values to be filled
A vector with the same class as x
x=rep(1:5,each=3) x=removeDup(x,NA) filldown(x) #> [1] 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5