Calculate the autocorrelation of the observations based on their timestamps, with interpolation (based on a specified method) if necessary.

temp_autocor(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 acf

Value

Autocorrelation of the observation vector.