Interpolate observations based on their timestamps and a method.

interpolate_obs(obs, times, interp_method = forecast::na.interp, ...)

Arguments

obs

the time series of numeric observations

times

numeric or Date vector of timestamps of the observations.

interp_method

character a function used to interpolate obs. Defaults to na.interp.

...

further arguments to be passed to the interpolation method

Value

Interpolated observation vector.