interpolate_with_margin: Interpolate over gaps (subsequent NAs) in vector.

View source: R/PreprocessingFunctions.R

interpolate_with_marginR Documentation

Interpolate over gaps (subsequent NAs) in vector.

Description

Interpolate over gaps (subsequent NAs) in vector.

Usage

interpolate_with_margin(data_in, marg, max_gap)

Arguments

data_in

Vector to interpolate in

marg

Margin in samples before and after gap to use for interpolation

max_gap

Maximum length of gaps in sample

Value

vector with interpolated gaps


kollaR documentation built on April 13, 2025, 5:11 p.m.