dot-fillNAgaps: Fill NA values with last previous value

.fillNAgapsR Documentation

Fill NA values with last previous value

Description

Fill NA values with last previous value

Usage

.fillNAgaps(x)

Arguments

x

a vector of values

Value

a vector with any NA values replaced with the last previous actuall value

Author(s)

Christian Trachsel

Examples

c(NA, 1, 2, 3, NA, 4, 5, NA, NA, NA, 6) |>
  rawDiag:::.fillNAgaps()

fgcz/rawDiag documentation built on May 5, 2024, 4:23 a.m.