Skip to contents

Inspired by zoo::na.locf0

Usage

na_locf(object, fromLast = FALSE)

Arguments

object

an object

fromLast

logical. Causes observations to be carried backward rather than forward. Default is FALSE.

Value

Original object with NAs filled in