Remove NAs from sensor data and return indices of (rows of) filled values
Source:R/interp_nan.R
interp_nan.RdThis is an internal function used by htrack
Value
A list with entries data (the input data with NAs filled in) and k a logical vector indicating the position (if data was a vector) or rows (if data was a matrix) where NAs were filled in. Internal NAs are filled via linear interoplation, while leading and trailing ones are filled using the first following or last preceding good value.