naLOCFPlusone: Performs NA replacement by last observation carried forward...

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Performs NA replacement by last observation carried forward but adds 1 to the last observation carried forward.

Usage

1

Arguments

x

a numeric vector

Value

a vector where NA's are replaced with the LOCF + 1

See Also

na.locf

Examples

1
2
3
require(zoo)
x <- c(2,NA,NA,4,5,2,NA)
naLOCFPlusone(x)

ETLUtils documentation built on May 19, 2017, 12:09 p.m.

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