Learn R Programming

SwimmeR (version 0.14.2)

fill_down: Fills NA values with previous non-NA value

Description

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

Usage

fill_down(x)

Value

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

Arguments

x

a list having some number of non-NA values

See Also

fill_down is a helper function inside lines_sort