Performs NA replacement by last observation carried forward but adds 1 to the last observation carried forward.
a numeric vector
a vector where NA's are replaced with the LOCF + 1
x <- c(2,NA,NA,4,5,2,NA)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.