Learn R Programming

PKPDsim (version 1.4.0)

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

Description

Inspired by zoo::na.locf0

Usage

na_locf(object, fromLast = FALSE)

Value

Original object with NAs filled in

Arguments

object

an object

fromLast

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