Interpolation NA values in a vector
This function is a tiny wrapper around
approx which allows to contain the maximum number of NA values in a row that will be filled by interpolation. This is useful to obtain regular time series.
a vector, possibly containing NA values
an integer vector of length one, constraining the number of of consecutive NA observations which will get replaced with interpolated values
further arguments, passed on to
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.