All sections of NA values that are smaller or equal as a defined maximal number of NA's are interpolated

interpolate_multipleNA(data_vector, max_na, diff_x = NULL)

Arguments

data_vector

Numeric vector of measurements (including NA values)

max_na

the maximal number of NA values in a row to be interpolated

diff_x

(optional) Numeric vector with x value difference correspoding to the data_vector. Only needed if the difference is not constant.

Value

A list containing the data vector with interpolated NA value as well as an information about the amount of NA's interpolated