locf {rbmi} | R Documentation |
Last Observation Carried Forward
Description
Returns a vector after applied last observation carried forward imputation.
Usage
locf(x)
Arguments
x |
a vector. |
Examples
## Not run:
locf(c(NA, 1, 2, 3, NA, 4)) # Returns c(NA, 1, 2, 3, 3, 4)
## End(Not run)
[Package rbmi version 1.2.6 Index]