filldown: Fill down NA with the last observed observation

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Fill down missing values with the latest non-missing value

Usage

1

Arguments

x

A vector

Value

A vector or list with the NA's replaced by the last observed value.

Author(s)

Claus Ekstrom <claus@rprimer.dk>

Examples

1
2
3
a <- c(1:5, "Howdy", NA, NA, 2:3, NA)
filldown(a)
filldown(c(NA, NA, NA, 3:5))

MESS documentation built on May 19, 2017, 11:55 a.m.

Search within the MESS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.