locf | R Documentation |
Returns a vector after applied last observation carried forward imputation.
locf(x)
x |
a vector. |
## Not run:
locf(c(NA, 1, 2, 3, NA, 4)) # Returns c(NA, 1, 2, 3, 3, 4)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.