Returns a vector after applied last observation carried forward imputation.
Examples
if (FALSE) { # \dontrun{
locf(c(NA, 1, 2, 3, NA, 4)) # Returns c(NA, 1, 2, 3, 3, 4)
} # }
Returns a vector after applied last observation carried forward imputation.
if (FALSE) { # \dontrun{
locf(c(NA, 1, 2, 3, NA, 4)) # Returns c(NA, 1, 2, 3, 3, 4)
} # }