na_locf: Fill in NAs with the previous non-missing value

View source: R/na_locf.R

na_locfR Documentation

Fill in NAs with the previous non-missing value

Description

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


PKPDsim documentation built on March 7, 2023, 5:40 p.m.