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.

1 |

`x` |
a vector, possibly containing NA values |

`max.len` |
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 |

a vector

`approx`

, `na.approx`

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.