fill_1_na: Fill 1-value gaps in a vector

Description Usage Arguments Value

View source: R/utils.r

Description

Fill gaps of single values with linearization (mean of the adjacent values) or repetition of previous/next value.

Usage

1
fill_1_na(x, method = c("linearize", "previous", "next"))

Arguments

x

numeric vector

method

how to fill in the gaps (default by linearization, otherwise by previous/next value duplication)

Value

numeric vector with filled 1-value gaps


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.