Learn R Programming

JumpeR (version 0.3.0)

fill_down: Fills NA values with previous non-NA value

Description

This is a base approximation of tidyr::fill()

Usage

fill_down(x)

Arguments

x

a list having some number of non-NA values

Value

a list where NA values have been replaced with the closest previous non-NA value

See Also

fill_down is a helper function inside lines_sort