Fill down missing values with the latest non-missing value
A vector or list with the NA's replaced by the last observed value.
Claus Ekstrom <firstname.lastname@example.org>
a <- c(1:5, "Howdy", NA, NA, 2:3, NA)
filldown(c(NA, NA, NA, 3:5))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.