na_approx.Rd
Linear interpolation of NAs in a vector using `zoo::na.approx`. The NAs at the beginning or at the end are replaced by their first non NA neighbour
na_approx(vec)
vec | A numeric vector with NAs |
---|
A numeric vector without NA
#> [1] 2 2 3 4 5 6 6