Skip to contents

Returns a vector after applied last observation carried forward imputation.

Usage

locf(x)

Arguments

x

a vector.

Examples

if (FALSE) { # \dontrun{
locf(c(NA, 1, 2, 3, NA, 4)) # Returns c(NA, 1, 2, 3, 3, 4)
} # }